This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update podlators to CPAN version 4.10
[perl5.git] / hints / freemint.sh
1 # hints/freemint.sh
2 #
3 # Contact alanh@freemint.org if you want to change this file.
4
5 archname="m68k-freemint"
6
7 cccdlflags=' '; # avoid -fPIC
8 ccdlflags="-Wl,-whole-archive -lgcc -lpthread -Wl,-no-whole-archive"
9
10 # libs
11 libpth="$prefix/lib /usr/local/lib /usr/lib"
12 glibpth="$libpth"
13 xlibpth="$libpth"
14
15 ccflags="$ccflags -D_GNU_SOURCE"
16 libswanted='m dld'
17 dl_src='dl_freemint.xs'
18 dlext='o'
19 lddlflags='-r'
20 ldflags='-static'
21 so='none'
22 useshrplib='false'
23
24 case "$usemymalloc" in
25 '') usemymalloc='n' ;;
26 esac
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"'
30
31 # Locales aren't feeling well.
32 LC_ALL=C; export LC_ALL;
33 LANG=C; export LANG;
34
35 # We crash if -Ox used.
36 locale_cflags='optimize="-O0"'