File: freemint.sh

package info (click to toggle)
perl 5.42.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 128,392 kB
  • sloc: perl: 534,963; ansic: 240,563; sh: 72,042; pascal: 6,934; xml: 2,428; yacc: 1,360; makefile: 1,197; cpp: 208; lisp: 1
file content (36 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"'