1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
--- misc/mozilla/nsprpub/configure 2010-08-19 07:05:19.000000000 -0500
+++ misc/build/mozilla/nsprpub/configure 2010-08-19 07:34:33.000000000 -0500
@@ -2938,7 +2938,8 @@
#define SYSV 1
EOF
- DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
+ MKSHLIB='$(CCC) -shared $(DSO_LDOPTS) -o $@'
+ DSO_LDOPTS='-Wl,-brtl -Wl,-bnortllib -Wl,-blibpath:/usr/lib:/lib'
ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
echo "configure:2944: checking for sys/atomic_op.h" >&5
@@ -3067,7 +3068,6 @@
AIX_LINK_OPTS='-brtl -bnso -berok'
;;
esac
- CFLAGS="$CFLAGS -qro -qroconst"
AIX_WRAP='$(DIST)/lib/aixwrap.o'
AIX_TMP='./_aix_tmp.o'
if test -n "$USE_64"; then
--- misc/mozilla/nsprpub/configure.in 2010-08-19 07:05:19.000000000 -0500
+++ misc/build/mozilla/nsprpub/configure.in 2010-08-19 07:35:35.000000000 -0500
@@ -811,7 +811,8 @@
AC_DEFINE(XP_UNIX)
AC_DEFINE(AIX)
AC_DEFINE(SYSV)
- DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
+ MKSHLIB='$(CCC) -shared $(DSO_LDOPTS) -o $@'
+ DSO_LDOPTS='-Wl,-brtl -Wl,-bnortllib -Wl,-blibpath:/usr/lib:/lib'
AC_CHECK_HEADER(sys/atomic_op.h, AC_DEFINE(AIX_HAVE_ATOMIC_OP_H))
case "${target_os}" in
aix3.2*)
@@ -854,7 +855,6 @@
AIX_LINK_OPTS='-brtl -bnso -berok'
;;
esac
- CFLAGS="$CFLAGS -qro -qroconst"
AIX_WRAP='$(DIST)/lib/aixwrap.o'
AIX_TMP='./_aix_tmp.o'
if test -n "$USE_64"; then
--- misc/mozilla/security/coreconf/AIX.mk 2010-08-19 07:04:11.000000000 -0500
+++ misc/build/mozilla/security/coreconf/AIX.mk 2010-08-19 07:38:42.000000000 -0500
@@ -62,35 +62,30 @@
DEFAULT_COMPILER = xlc_r
-CC = xlc_r
-CCC = xlC_r
+CCC = $(CXX)
CPU_ARCH = rs6000
RANLIB = ranlib
OS_CFLAGS = -DAIX -DSYSV
-OS_LIBS += -blibpath:/usr/lib:/lib -lc -lm
+OS_LIBS += -Wl,-blibpath:/usr/lib:/lib -lc -lm
-DSO_LDOPTS = -brtl -bnortllib -bM:SRE -bnoentry
-MKSHLIB = $(LD) $(DSO_LDOPTS) -blibpath:/usr/lib:/lib -lc -lm
+DSO_LDOPTS = -Wl,-brtl -Wl,-bnortllib
+MKSHLIB = $(CC) --shared $(DSO_LDOPTS) -Wl,-blibpath:/usr/lib:/lib -lc -lm
AIX_WRAP = $(DIST)/lib/aixwrap.o
AIX_TMP = $(OBJDIR)/_aix_tmp.o
ifdef MAPFILE
-DSO_LDOPTS += -bexport:$(MAPFILE)
+DSO_LDOPTS += -Wl,-bexport:$(MAPFILE)
else
-DSO_LDOPTS += -bexpall
+DSO_LDOPTS += -Wl,-bexpall
endif
PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' > $@
-ifdef BUILD_OPT
- OPTIMIZER += -qmaxmem=-1
-endif
-
ifeq ($(USE_64), 1)
OS_CFLAGS += -DAIX_64BIT
OBJECT_MODE=64
--- misc/mozilla/security/nss/cmd/platlibs.mk 2010-08-19 07:03:52.000000000 -0500
+++ misc/build/mozilla/security/nss/cmd/platlibs.mk 2010-08-19 07:39:10.000000000 -0500
@@ -154,7 +154,7 @@
$(NULL)
ifeq ($(OS_ARCH), AIX)
-EXTRA_SHARED_LIBS += -brtl
+EXTRA_SHARED_LIBS += -Wl,-brtl
endif
# $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
@@ -207,7 +207,7 @@
$(NULL)
ifeq ($(OS_ARCH), AIX)
-EXTRA_SHARED_LIBS += -brtl
+EXTRA_SHARED_LIBS += -Wl,-brtl
endif
# If GNU ld is used, we must use the -rpath-link option to tell
--- misc/mozilla/security/nss/cmd/shlibsign/Makefile 2010-08-19 07:03:57.000000000 -0500
+++ misc/build/mozilla/security/nss/cmd/shlibsign/Makefile 2010-08-19 07:42:30.000000000 -0500
@@ -74,6 +74,10 @@
include $(CORE_DEPTH)/coreconf/rules.mk
+ifeq ($(OS), AIX)
+EXTRA_SHARED_LIBS += -lpthreads
+endif
+
#######################################################################
# (6) Execute "component" rules. (OPTIONAL) #
#######################################################################
--- misc/mozilla/security/nss/cmd/shlibsign/mangle/Makefile 2010-08-19 07:03:57.000000000 -0500
+++ misc/build/mozilla/security/nss/cmd/shlibsign/mangle/Makefile 2010-08-19 07:41:51.000000000 -0500
@@ -74,6 +74,8 @@
# (7) Execute "local" rules. (OPTIONAL). #
#######################################################################
+ifeq ($(OS), AIX)
+EXTRA_SHARED_LIBS += -lpthreads
+endif
include ../../platrules.mk
-
--- misc/mozilla/dbm/include/mcom_db.h 2010-08-19 08:39:18.000000000 -0500
+++ misc/build/mozilla/dbm/include/mcom_db.h 2010-08-19 08:39:45.000000000 -0500
@@ -88,7 +88,7 @@
#ifdef __DBINTERFACE_PRIVATE
-#ifdef HAVE_SYS_CDEFS_H
+#if defined(HAVE_SYS_CDEFS_H) && !defined(_AIX)
#include <sys/cdefs.h>
#else
#include "cdefs.h"
--- misc/mozilla/configure 2010-08-19 09:18:07.000000000 -0500
+++ misc/build/mozilla/configure 2010-08-19 09:11:35.000000000 -0500
@@ -5884,6 +5884,9 @@
CC_VERSION=`lslpp -Lcq vac.C 2>/dev/null | awk -F: '{ print $3 }'`
CXX_VERSION=`lslpp -Lcq vacpp.cmp.core 2>/dev/null | awk -F: '{ print $3 }'`
fi
+ else
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
fi
case "${target_os}" in
aix4.1*)
--- misc/mozilla/configure.in 2010-08-19 09:18:07.000000000 -0500
+++ misc/build/mozilla/configure.in 2010-08-19 09:10:46.000000000 -0500
@@ -1489,6 +1489,9 @@
CC_VERSION=`lslpp -Lcq vac.C 2>/dev/null | awk -F: '{ print $3 }'`
CXX_VERSION=`lslpp -Lcq vacpp.cmp.core 2>/dev/null | awk -F: '{ print $3 }'`
fi
+ else
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
fi
case "${target_os}" in
aix4.1*)
--- misc/mozilla/configure 2010-08-19 11:03:27.000000000 -0500
+++ misc/build/mozilla/configure 2010-08-19 11:05:38.000000000 -0500
@@ -5887,6 +5887,8 @@
else
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
+ MOZ_FIX_LINK_PATHS=
+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-brtl"
fi
case "${target_os}" in
aix4.1*)
--- misc/mozilla/configure.in 2010-08-19 11:03:36.000000000 -0500
+++ misc/build/mozilla/configure.in 2010-08-19 11:04:33.000000000 -0500
@@ -1492,6 +1492,9 @@
else
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
+ AC_MSG_WARN([Clearing MOZ_FIX_LINK_PATHS till we can fix bug 332075.])
+ MOZ_FIX_LINK_PATHS=
+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-brtl"
fi
case "${target_os}" in
aix4.1*)
--- misc/mozilla/config/rules.mk 2010-08-20 04:09:51.000000000 -0500
+++ misc/build/mozilla/config/rules.mk 2010-08-20 05:02:37.000000000 -0500
@@ -488,8 +488,13 @@
ifeq ($(OS_ARCH),AIX)
ifdef IS_COMPONENT
ifneq ($(HAS_EXTRAEXPORTS),1)
+ifdef GNU_CC
+MKSHLIB += -Wl,-bE:$(MOZILLA_DIR)/build/unix/aix.exp -Wl,-bnoexpall
+MKCSHLIB += -Wl,-bE:$(MOZILLA_DIR)/build/unix/aix.exp -Wl,-bnoexpall
+else
MKSHLIB += -bE:$(MOZILLA_DIR)/build/unix/aix.exp -bnoexpall
MKCSHLIB += -bE:$(MOZILLA_DIR)/build/unix/aix.exp -bnoexpall
+endif # GNU_CXX
endif # HAS_EXTRAEXPORTS
endif # IS_COMPONENT
endif # AIX
|