X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Famigaos.sh;h=4108c2ecb81491baacc745f63c6f15631d72e498;hb=2a079e0090406b1b2e50643540f149206c9e9de8;hp=28a95c0fcdf0bbb6c3a955a21ec48b0a5ebd8cfa;hpb=b8e6d11c134e93a7795379ceb62b7f950607c667;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/amigaos.sh b/hints/amigaos.sh index 28a95c0..4108c2e 100644 --- a/hints/amigaos.sh +++ b/hints/amigaos.sh @@ -17,6 +17,10 @@ d_fork='undef' d_vfork='define' groupstype='int' +# the following is needed to prevent pdksh from blowing up + +i_neterrno='undef' + # libs libpth="$prefix/lib /local/lib" @@ -49,6 +53,9 @@ optimize='-O2 -fomit-frame-pointer' # 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"'