2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 # Config stuff for AIX.
8 include $(CORE_DEPTH
)/coreconf
/UNIX.mk
11 # There are two implementation strategies available on AIX:
12 # pthreads, and pthreads-user. The default is pthreads.
13 # In both strategies, we need to use pthread_user.c, instead of
14 # aix.c. The fact that aix.c is never used is somewhat strange.
16 # So we need to do the following:
17 # - Default (PTHREADS_USER not defined in the environment or on
19 # Set PTHREADS_USER=1, USE_PTHREADS=1
20 # - PTHREADS_USER=1 set in the environment or on the command line:
23 ifeq ($(PTHREADS_USER
),1)
24 USE_PTHREADS
= # just to be safe
25 IMPL_STRATEGY
= _PTH_USER
31 DEFAULT_COMPILER
= xlc_r
40 OS_CFLAGS
= -DAIX
-DSYSV
41 OS_LIBS
+= -blibpath
:/usr
/lib
:/lib
-lc
-lm
43 DSO_LDOPTS
= -brtl
-bnortllib
-bM
:SRE
-bnoentry
44 MKSHLIB
= $(LD
) $(DSO_LDOPTS
) -blibpath
:/usr
/lib
:/lib
-lc
-lm
46 AIX_WRAP
= $(DIST
)/lib
/aixwrap.o
47 AIX_TMP
= $(OBJDIR
)/_aix_tmp.o
50 DSO_LDOPTS
+= -bexport
:$(MAPFILE
)
52 DSO_LDOPTS
+= -bexpall
55 PROCESS_MAP_FILE
= grep
-v
';+' $< | grep
-v
';-' | \
56 sed
-e
's; DATA ;;' -e
's,;;,,' -e
's,;.*,,' > $@
59 OPTIMIZER
+= -qmaxmem
=-1
63 OS_CFLAGS
+= -DAIX_64BIT