This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.001 patch.1b: [byacc deps fix, set*id fixes, x2p/walk.c emit_split()
[perl5.git] / hints / linux.sh
CommitLineData
1aef975c 1# hints/linux.sh
a0d0e21e 2# Original version by rsanders
1fc4cb55 3# Additional support by Kenneth Albanowski <kjahds@kjahds.com>
1aef975c
AD
4#
5# First pass at ELF support by Andy Dougherty <doughera@lafcol.lafayette.edu>
6# Fri Feb 3 14:05:00 EST 1995
7# Use sh Configure -Dcc=gcc-elf to try using gcc-elf. It might work.
8#
1fc4cb55
AD
9# Last updated Mon Mar 6 10:18:10 EST 1995
10#
11
12# Why is this needed?
13bin='/usr/bin'
14
15# Apparently some versions of gcc 2.6.2 are picking up _G_HAVE_BOOL
16# from somewhere (_G_config.h maybe?) but not actually defining bool.
17# Anyone really know what's going on?
18ccflags='-Dbool=char -DHAS_BOOL'
1aef975c 19
a0d0e21e 20d_dosuid='define'
1aef975c 21
a0d0e21e 22malloctype='void *'
1aef975c
AD
23usemymalloc='n'
24
25case "$optimize" in
26'') optimize='-O2' ;;
27esac
28
1aef975c
AD
29case "$cc" in
30*cc-elf*)
31 so='so'
32 dlext='so'
33 # Configure might not understand nm output for ELF.
34 usenm=false
35 ;;
36*)
37 lddlflags='-r'
38 so='sa'
39 dlext='o'
40 ## If you are using DLD 3.2.4 which does not support shared libs,
41 ## uncomment the next two lines:
42 #ldflags="-static"
43 #so='none'
44 ;;
45esac
a0d0e21e
LW
46
47cat <<EOM
48
1aef975c 49You should take a look at hints/linux.sh. There are a some lines you
a0d0e21e
LW
50may wish to change near the bottom.
51EOM