Patch to Build Dynamic-Lib (DLL) version of perl using gnuwin32 b17.1
[p5sagit/p5-mst-13.2.git] / hints / amigaos.sh
index 8328c8a..4108c2e 100644 (file)
@@ -6,14 +6,9 @@
 archname='m68k-amigaos'
 cc='gcc'
 firstmakefile='GNUmakefile'
-ccflags='-DAMIGAOS -mstackextend'
-optimize='-O2 -fomit-frame-pointer'
+usenm='true'
 
-cppminus=' '
-cpprun='cpp'
-cppstdin='cpp'
-
-usenm='y'
+usedl='n'
 usemymalloc='n'
 usevfork='true'
 useperlio='true'
@@ -22,22 +17,53 @@ d_fork='undef'
 d_vfork='define'
 groupstype='int'
 
+# the following is needed to prevent pdksh from blowing up
+
+i_neterrno='undef'
+
 # libs
 
-libpth="/local/lib $prefix/lib"
+libpth="$prefix/lib /local/lib"
 glibpth="$libpth"
 xlibpth="$libpth"
 
-libswanted='dld m c gdbm'
+libswanted='gdbm m'
 so=' '
 
-# dynamic loading
+# compiler & linker flags
 
-dlext='o'
-cccdlflags='none'
-ccdlflags='none'
-lddlflags='-oformat a.out-amiga -r'
+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'
+
+# 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
+# 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'