X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Famigaos.sh;h=c5ba6ff5919d6448269068fa5ba78e1b986bc312;hb=11264fdb092cd4874ac94ff361c9d4e20753485f;hp=57c7b62aeb407380ae261c87a4e0031051326795;hpb=b971f6e4f6780f32fa16abecd87989a37436a193;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/amigaos.sh b/hints/amigaos.sh index 57c7b62..c5ba6ff 100644 --- a/hints/amigaos.sh +++ b/hints/amigaos.sh @@ -7,14 +7,11 @@ archname='m68k-amigaos' cc='gcc' firstmakefile='GNUmakefile' usenm='true' +d_fork='undef' # available but ENOSYS -usedl='n' usemymalloc='n' -usevfork='true' useperlio='true' d_eofnblk='define' -d_fork='undef' -d_vfork='define' groupstype='int' # libs @@ -23,39 +20,32 @@ libpth="$prefix/lib /local/lib" glibpth="$libpth" xlibpth="$libpth" -libswanted='gdbm m' +# 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=' ' +libs='-lm' # compiler & linker flags - -ccflags='-DAMIGAOS -mstackextend' -ldflags='' -optimize='-O2 -fomit-frame-pointer' +# Respect command-line values. + +ccflags="$ccflags -DAMIGAOS" +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' # uncomment the following settings if you are compiling for an 68020+ system +# and want a residentable executable instead of dynamic loading +# usedl='n' # ccflags='-DAMIGAOS -mstackextend -m68020 -resident32' # ldflags='-m68020 -resident32' -# uncomment the following line if you want dynamic loading and -# a working version of dld is available - -# usedl='' -# ccflags='-DAMIGAOS -mstackextend' -# ldflags='' -# optimize='-O2 -fomit-frame-pointer' -# dlext='o' -# cccdlflags='none' -# ccdlflags='none' -# lddlflags='-oformat a.out-amiga -r' - -# When AmigaOS runs a script with "#!", it sets argv[0] to the script name. -toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"' - -# 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