cde47b1cb97b7c07b1bb40084bb52368b4a0dd7d
[p5sagit/p5-mst-13.2.git] / hints / linux.sh
1 # hints/linux.sh
2 # Original version by rsanders
3 # Additional dlext support by Kenneth Albanowski <kjahds@kjahds.com>
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 #
9
10 ccflags='-I/usr/include/bsd'
11 cppflags=' -I/usr/include/bsd'
12 d_dosuid='define'
13
14 malloctype='void *'
15 usemymalloc='n'
16
17 case "$optimize" in
18 '') optimize='-O2' ;;
19 esac
20
21 case "$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     ;;
37 esac
38
39 cat <<EOM
40
41 You should take a look at hints/linux.sh. There are a some lines you
42 may wish to change near the bottom.
43 EOM