perl5.000 patch.0m: [various fixes, hint file updates and documentation]
[p5sagit/p5-mst-13.2.git] / hints / linux.sh
CommitLineData
1aef975c 1# hints/linux.sh
a0d0e21e 2# Original version by rsanders
3# Additional dlext support by Kenneth Albanowski <kjahds@kjahds.com>
1aef975c 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#
1aef975c 9
a0d0e21e 10ccflags='-I/usr/include/bsd'
11cppflags=' -I/usr/include/bsd'
12d_dosuid='define'
1aef975c 13
a0d0e21e 14malloctype='void *'
1aef975c 15usemymalloc='n'
16
17case "$optimize" in
18'') optimize='-O2' ;;
19esac
20
1aef975c 21case "$cc" in
22*cc-elf*)
23 so='so'
24 dlext='so'
25 # Configure might not understand nm output for ELF.
26 usenm=false
27 ;;
28*)
29 lddlflags='-r'
30 so='sa'
31 dlext='o'
32 ## If you are using DLD 3.2.4 which does not support shared libs,
33 ## uncomment the next two lines:
34 #ldflags="-static"
35 #so='none'
36 ;;
37esac
a0d0e21e 38
39cat <<EOM
40
1aef975c 41You should take a look at hints/linux.sh. There are a some lines you
a0d0e21e 42may wish to change near the bottom.
43EOM