1# hints/freemint.sh
2#
3# Contact alanh@freemint.org if you want to change this file.
4
5archname="m68k-freemint"
6
7cccdlflags=' '; # avoid -fPIC
8ccdlflags="-Wl,-whole-archive -lgcc -lpthread -Wl,-no-whole-archive"
9
10# libs
11libpth="$prefix/lib /usr/local/lib /usr/lib"
12glibpth="$libpth"
13xlibpth="$libpth"
14
15ccflags="$ccflags -D_GNU_SOURCE"
16libswanted='m dld'
17dl_src='dl_freemint.xs'
18dlext='o'
19lddlflags='-r'
20ldflags='-static'
21so='none'
22useshrplib='false'
23
24case "$usemymalloc" in
25'') usemymalloc='n' ;;
26esac
27#sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
28#around 14M, so we need to use system malloc() as our sbrk()
29malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
30
31# Locales aren't feeling well.
32LC_ALL=C; export LC_ALL;
33LANG=C; export LANG;
34
35# We crash if -Ox used.
36locale_cflags='optimize="-O0"'
37