X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Famigaos.sh;h=fff55b082cc62bd328abf5c07428aa8ae5f840aa;hb=9c3309b4343e6efa5714ff70b60a0d731376adae;hp=e7686436913b72aa2ec5b70f1ab7d2bda4366e8f;hpb=fdaee7fccceeabfa3b6031d9b791db38058c1234;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/amigaos.sh b/hints/amigaos.sh index e768643..fff55b0 100644 --- a/hints/amigaos.sh +++ b/hints/amigaos.sh @@ -22,15 +22,20 @@ libpth="$prefix/lib /local/lib" glibpth="$libpth" xlibpth="$libpth" +# This should remove unwanted libraries instead of limiting the set +# to just these few. E.g. what about Berkeley DB? libswanted='gdbm m dld' so=' ' # compiler & linker flags +# Respect command-line values. -ccflags='-DAMIGAOS -mstackextend' -ldflags='' -optimize='-O2 -fomit-frame-pointer' +ccflags="$ccflags -DAMIGAOS -mstackextend" +case "$optimize" in +'') optimize='-O2 -fomit-frame-pointer';; +esac dlext='o' +# Are these two different from the defaults? cccdlflags='none' ccdlflags='none' lddlflags='-oformat a.out-amiga -r' @@ -42,10 +47,6 @@ lddlflags='-oformat a.out-amiga -r' # ccflags='-DAMIGAOS -mstackextend -m68020 -resident32' # ldflags='-m68020 -resident32' -# Avoid telldir prototype conflict in pp_sys.c (AmigaOS uses const DIR *) -# Configure should test for this. Volunteers? -pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' - # AmigaOS always reports only two links to directories, even if they # contain subdirectories. Consequently, we use this variable to stop # File::Find using the link count to determine whether there are