X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Famigaos.sh;h=fff55b082cc62bd328abf5c07428aa8ae5f840aa;hb=333b7451c3645c70d019a85ff880dce1977c7857;hp=29d3880a50cf6b38b34522079dd26c6aa8117db1;hpb=0a753a764065f2260004b6e6975085378b850346;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/amigaos.sh b/hints/amigaos.sh index 29d3880..fff55b0 100644 --- a/hints/amigaos.sh +++ b/hints/amigaos.sh @@ -7,6 +7,7 @@ archname='m68k-amigaos' cc='gcc' firstmakefile='GNUmakefile' usenm='true' + usemymalloc='n' usevfork='true' useperlio='true' @@ -15,38 +16,41 @@ d_fork='undef' d_vfork='define' groupstype='int' -# compiler & linker flags - -ccflags='-DAMIGAOS -mstackextend' -ldflags='' -optimize='-O2 -fomit-frame-pointer' - -# uncomment the following settings if you are compiling for an 68020+ system - -# ccflags='-DAMIGAOS -mstackextend -m68020 -resident32' -# ldflags='-m68020 -resident32' - # libs 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=' ' -# dynamic loading - -usedl='n' +# compiler & linker flags +# Respect command-line values. + +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' -# uncomment the following line if a working version of dld is available +# uncomment the following settings if you are compiling for an 68020+ system +# and want a residentable executable instead of dynamic loading -# usedl='y' -# dlext='o' -# cccdlflags='none' -# ccdlflags='none' -# lddlflags='-oformat a.out-amiga -r' +# usedl='n' +# 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 +# subdirectories to be searched. This will generate a harmless message: +# Hmm...You had some extra variables I don't know about...I'll try to keep 'em. +# Propagating recommended variable dont_use_nlink +dont_use_nlink='define'