3 # Contact alanh@freemint.org if you want to change this file.
5 archname="m68k-freemint"
7 cccdlflags=' '; # avoid -fPIC
8 ccdlflags="-Wl,-whole-archive -lgcc -lpthread -Wl,-no-whole-archive"
11 libpth="$prefix/lib /usr/local/lib /usr/lib"
15 ccflags="$ccflags -D_GNU_SOURCE"
17 dl_src='dl_freemint.xs'
24 case "$usemymalloc" in
25 '') usemymalloc='n' ;;
27 #sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
28 #around 14M, so we need to use system malloc() as our sbrk()
29 malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
31 # Locales aren't feeling well.
32 LC_ALL=C; export LC_ALL;
35 # We crash if -Ox used.
36 locale_cflags='optimize="-O0"'