diff options
author | Alan Hourihane <alanh@fairlite.co.uk> | 2013-11-15 11:53:16 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2014-01-16 15:37:13 +1100 |
commit | fa1b2c4275e53adb349f1a988aec8a194d8763f3 (patch) | |
tree | 668cc0e2837e913d8d2344da70ae6ecb655a1d06 /hints/freemint.sh | |
parent | cbc0b8140a1ef2e1a7119bb461f48395a4a8fc4d (diff) | |
download | perl-fa1b2c4275e53adb349f1a988aec8a194d8763f3.tar.gz |
new freemint hints file
Diffstat (limited to 'hints/freemint.sh')
-rw-r--r-- | hints/freemint.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/hints/freemint.sh b/hints/freemint.sh new file mode 100644 index 0000000000..c5894d48aa --- /dev/null +++ b/hints/freemint.sh @@ -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"' |