This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
enable LFS on GNU/Hurd
[perl5.git] / hints / gnu.sh
CommitLineData
c8c809ad
MK
1# hints/gnu.sh
2# Last modified: Thu Dec 10 20:47:28 CET 1998
3# Mark Kettenis <kettenis@phys.uva.nl>
4
5# libnsl is unusable on the Hurd.
6# XXX remove this once SUNRPC is implemented.
761ee4e8 7set `echo X "$libswanted "| sed -e 's/ nsl / /' -e 's/ c / pthread /'`
c8c809ad
MK
8shift
9libswanted="$*"
10
a1da11a3
PT
11# Debian 4.0 puts ndbm in the -lgdbm_compat library.
12libswanted="$libswanted gdbm_compat"
13
c8c809ad
MK
14case "$optimize" in
15'') optimize='-O2' ;;
16esac
17
a1da11a3
PT
18case "$plibpth" in
19'') plibpth=`gcc -print-search-dirs | grep libraries |
20 cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'`
21 set X $plibpth # Collapse all entries on one line
22 shift
23 plibpth="$*"
24 ;;
25esac
26
c8c809ad
MK
27# Flags needed to produce shared libraries.
28lddlflags='-shared'
29
30# Flags needed by programs that use dynamic linking.
31ccdlflags='-Wl,-E'
32
bfbdaa66 33# Debian bug #258618
a190e648 34ccflags="-D_GNU_SOURCE $ccflags"
bfbdaa66 35
1fda587d
PT
36cat > UU/uselargefiles.cbu <<'EOCBU'
37# This script UU/uselargefiles.cbu will get 'called-back' by Configure
38# after it has prompted the user for whether to use large files.
39case "$uselargefiles" in
40''|$define|true|[yY]*)
41# Keep this in the left margin.
42ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
43
44 ccflags="$ccflags $ccflags_uselargefiles"
45 ;;
46esac
47EOCBU
48
c8c809ad
MK
49# The following routines are only available as stubs in GNU libc.
50# XXX remove this once metaconf detects the GNU libc stubs.
51d_msgctl='undef'
52d_msgget='undef'
53d_msgrcv='undef'
54d_msgsnd='undef'
55d_semctl='undef'
56d_semget='undef'
57d_semop='undef'
58d_shmat='undef'
59d_shmctl='undef'
60d_shmdt='undef'
61d_shmget='undef'