This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Rename perl_thread to perl_os_thread.
[perl5.git] / hints / aix.sh
CommitLineData
1aef975c
AD
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
LW
13d_setrgid='undef'
14d_setruid='undef'
1aef975c 15
a0d0e21e
LW
16alignbytes=8
17
a5f75d66
AD
18usemymalloc='n'
19
3c321fdc 20so="a"
21dlext="so"
22
1aef975c
AD
23# Make setsockopt work correctly. See man page.
24# ccflags='-D_BSD=44'
25
26# uname -m output is too specific and not appropriate here
27case "$archname" in
28'') archname="$osname" ;;
29esac
30
31case "$osvers" in
323*) d_fchmod=undef
33 ccflags='-D_ALL_SOURCE'
34 ;;
35*) # These hints at least work for 4.x, possibly other systems too.
80589958 36 ccflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE'
37 case "$cc" in
38 *gcc*) ;;
39 *) ccflags="-qmaxmem=8192 $ccflags" ;;
40 esac
1aef975c 41 nm_opt='-B'
1aef975c
AD
42 ;;
43esac
44
9018c6a0
KN
45# These functions don't work like Perl expects them to.
46d_setregid='undef'
47d_setreuid='undef'
48
8e07c86e
AD
49# The optimizer in 4.1.1 apparently generates bad code for scope.c.
50# Configure doesn't offer an easy way to propagate extra variables
51# only for certain cases, so the following contortion is required:
c07a80fd 52# This is probably not needed in 5.002 and later.
53# scope_cflags='case "$osvers" in 4.1*) optimize=" ";; esac'
8e07c86e 54
1aef975c 55# Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
a0d0e21e
LW
56#
57# Tell perl which symbols to export for dynamic linking.
4633a7c4
LW
58case "$cc" in
59*gcc*) ccdlflags='-Xlinker -bE:perl.exp' ;;
60*) ccdlflags='-bE:perl.exp' ;;
61esac
a0d0e21e
LW
62
63# The first 3 options would not be needed if dynamic libs. could be linked
64# with the compiler instead of ld.
42793c05
TB
65# -bI:$(PERL_INC)/perl.exp Read the exported symbols from the perl binary
66# -bE:$(BASEEXT).exp Export these symbols. This file contains only one
67# symbol: boot_$(EXP) can it be auto-generated?
c07a80fd 68case "$osvers" in
693*)
42793c05 70lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
c07a80fd 71 ;;
72*)
73lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc'
a0d0e21e 74
c07a80fd 75;;
76esac