new freemint hints file
authorAlan Hourihane <alanh@fairlite.co.uk>
Fri, 15 Nov 2013 00:53:16 +0000 (11:53 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 16 Jan 2014 04:37:13 +0000 (15:37 +1100)
MANIFEST
hints/freemint.sh [new file with mode: 0644]

index 8b2fd78..055beb9 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -3979,6 +3979,7 @@ hints/epix.sh                     Hints for named architecture
 hints/esix4.sh                 Hints for named architecture
 hints/fps.sh                   Hints for named architecture
 hints/freebsd.sh               Hints for named architecture
+hints/freemint.sh              Hints for named architecture
 hints/genix.sh                 Hints for named architecture
 hints/gnukfreebsd.sh           Hints for named architecture
 hints/gnuknetbsd.sh            Hints for named architecture
diff --git a/hints/freemint.sh b/hints/freemint.sh
new file mode 100644 (file)
index 0000000..c5894d4
--- /dev/null
@@ -0,0 +1,36 @@
+# hints/freemint.sh
+#
+# Contact alanh@freemint.org if you want to change this file.
+
+archname="m68k-freemint"
+
+cccdlflags=' '; # avoid -fPIC
+ccdlflags="-Wl,-whole-archive -lgcc -lpthread -Wl,-no-whole-archive"
+
+# libs
+libpth="$prefix/lib /usr/local/lib /usr/lib"
+glibpth="$libpth"
+xlibpth="$libpth"
+
+ccflags="$ccflags -D_GNU_SOURCE"
+libswanted='m dld'
+dl_src='dl_freemint.xs'
+dlext='o'
+lddlflags='-r'
+ldflags='-static'
+so='none'
+useshrplib='false'
+
+case "$usemymalloc" in
+'') usemymalloc='n' ;;
+esac
+#sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
+#around 14M, so we need to use system malloc() as our sbrk()
+malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
+
+# Locales aren't feeling well.
+LC_ALL=C; export LC_ALL;
+LANG=C; export LANG;
+
+# We crash if -Ox used.
+locale_cflags='optimize="-O0"'