perl 5.002beta2 patch: toke.c
[p5sagit/p5-mst-13.2.git] / hints / aix.sh
CommitLineData
1aef975c 1# hints/aix.sh
2# AIX 3.x.x hints thanks to Wayne Scott <wscott@ichips.intel.com>
3# AIX 4.1 hints thanks to Christopher Chan-Nui <channui@austin.ibm.com>.
4# Merged on Mon Feb 6 10:22:35 EST 1995 by
5# Andy Dougherty <doughera@lafcol.lafayette.edu>
6
7
8# Configure finds setrgid and setruid, but they're useless. The man
9# pages state:
10# setrgid: The EPERM error code is always returned.
11# setruid: The EPERM error code is always returned. Processes cannot
12# reset only their real user IDs.
a0d0e21e 13d_setrgid='undef'
14d_setruid='undef'
1aef975c 15
a0d0e21e 16alignbytes=8
17
1aef975c 18# Make setsockopt work correctly. See man page.
19# ccflags='-D_BSD=44'
20
21# uname -m output is too specific and not appropriate here
22case "$archname" in
23'') archname="$osname" ;;
24esac
25
26case "$osvers" in
273*) d_fchmod=undef
28 ccflags='-D_ALL_SOURCE'
29 ;;
30*) # These hints at least work for 4.x, possibly other systems too.
31 d_setregid='undef'
32 d_setreuid='undef'
33 ccflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE'
34 nm_opt='-B'
1aef975c 35 ;;
36esac
37
8e07c86e 38# The optimizer in 4.1.1 apparently generates bad code for scope.c.
39# Configure doesn't offer an easy way to propagate extra variables
40# only for certain cases, so the following contortion is required:
41scope_cflags='case "$osvers" in 4.1*) optimize=" ";; esac'
42
1aef975c 43# Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
a0d0e21e 44#
45# Tell perl which symbols to export for dynamic linking.
4633a7c4 46case "$cc" in
47*gcc*) ccdlflags='-Xlinker -bE:perl.exp' ;;
48*) ccdlflags='-bE:perl.exp' ;;
49esac
a0d0e21e 50
51# The first 3 options would not be needed if dynamic libs. could be linked
52# with the compiler instead of ld.
42793c05 53# -bI:$(PERL_INC)/perl.exp Read the exported symbols from the perl binary
54# -bE:$(BASEEXT).exp Export these symbols. This file contains only one
55# symbol: boot_$(EXP) can it be auto-generated?
56lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
a0d0e21e 57
1aef975c 58# The '-e _nostart' might not be needed on AIX 4.1, but appears to be
59# harmless.