1 diff -ru a/nspr/configure b/nspr/configure
2 --- a/a/nspr/configure 2014-09-29 16:47:42.984012225 +0100
3 +++ b/b/nspr/configure 2014-09-29 16:50:33.907375937 +0100
5 AIX_LINK_OPTS='-brtl -bnso -berok'
8 - CFLAGS="$CFLAGS -qro -qroconst"
9 AIX_WRAP='$(DIST)/lib/aixwrap.o'
10 AIX_TMP='./_aix_tmp.o'
11 if test -n "$USE_64"; then
12 diff -ru a/nspr/configure.in b/nspr/configure.in
13 --- a/a/nspr/configure.in 2014-09-29 16:46:35.257394860 +0100
14 +++ b/b/nspr/configure.in 2014-09-29 16:50:33.908375942 +0100
19 - DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
20 + DSO_LDOPTS='-Wl,-brtl -Wl,-bnortllib -Wl,-blibpath:/usr/lib:/lib'
21 + MKSHLIB='$(CCC) -shared $(DSO_LDOPTS) -o $@'
22 AC_CHECK_HEADER(sys/atomic_op.h, AC_DEFINE(AIX_HAVE_ATOMIC_OP_H))
23 case "${target_os}" in
25 @@ -1269,10 +1270,9 @@
26 AC_DEFINE(HAVE_SOCKLEN_T)
27 AC_DEFINE(HAVE_FCNTL_FILE_LOCKING)
29 - AIX_LINK_OPTS='-brtl -bnso -berok'
30 + AIX_LINK_OPTS='-Wl,-brtl -Wl,-bnso -Wl,-berok'
33 - CFLAGS="$CFLAGS -qro -qroconst"
34 AIX_WRAP='$(DIST)/lib/aixwrap.o'
35 AIX_TMP='./_aix_tmp.o'
36 if test -n "$USE_64"; then
37 diff -ru a/nspr/pr/src/Makefile.in b/nspr/pr/src/Makefile.in
38 --- a/a/nspr/pr/src/Makefile.in 2014-09-29 16:46:35.281395079 +0100
39 +++ b/b/nspr/pr/src/Makefile.in 2014-09-29 16:50:33.909375948 +0100
44 -DSO_LDOPTS += -binitfini::_PR_Fini
46 ifeq ($(CLASSIC_NSPR),1)
47 ifeq ($(OS_RELEASE),4.1)
48 diff -ru a/nss/cmd/platlibs.mk b/nss/cmd/platlibs.mk
49 --- a/a/nss/cmd/platlibs.mk 2014-09-29 16:47:42.987012253 +0100
50 +++ b/b/nss/cmd/platlibs.mk 2014-09-29 16:50:33.910375955 +0100
54 ifeq ($(OS_ARCH), AIX)
55 -EXTRA_SHARED_LIBS += -brtl
56 +EXTRA_SHARED_LIBS += -Wl,-brtl
59 # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
63 ifeq ($(OS_ARCH), AIX)
64 -EXTRA_SHARED_LIBS += -brtl
65 +EXTRA_SHARED_LIBS += -Wl,-brtl
68 # $(PROGRAM) has NO explicit dependencies on $(EXTRA_SHARED_LIBS)
69 diff -ru a/nss/cmd/shlibsign/Makefile b/nss/cmd/shlibsign/Makefile
70 --- a/a/nss/cmd/shlibsign/Makefile 2014-09-29 16:46:35.139393785 +0100
71 +++ b/b/nss/cmd/shlibsign/Makefile 2014-09-29 16:50:33.910375955 +0100
77 +EXTRA_SHARED_LIBS += -lpthreads
80 # sign any and all shared libraries that contain the word freebl
81 ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1)
82 diff -ru a/nss/cmd/shlibsign/mangle/Makefile b/nss/cmd/shlibsign/mangle/Makefile
83 --- a/a/nss/cmd/shlibsign/mangle/Makefile 2014-09-29 16:46:35.139393785 +0100
84 +++ b/b/nss/cmd/shlibsign/mangle/Makefile 2014-09-29 16:50:33.910375955 +0100
91 +EXTRA_SHARED_LIBS += -lpthreads
94 #######################################################################
95 # (5) Execute "global" rules. (OPTIONAL) #
96 diff -ru a/nss/coreconf/AIX.mk b/nss/coreconf/AIX.mk
97 --- a/a/nss/coreconf/AIX.mk 2014-09-29 16:46:35.040392883 +0100
98 +++ b/b/nss/coreconf/AIX.mk 2014-09-29 16:50:33.909375948 +0100
101 DEFAULT_COMPILER = xlc_r
111 OS_CFLAGS = -DAIX -DSYSV
112 -OS_LIBS += -blibpath:/usr/lib:/lib -lc -lm
113 +OS_LIBS += -Wl,-blibpath:/usr/lib:/lib -lc -lm
115 -DSO_LDOPTS = -brtl -bnortllib -bM:SRE -bnoentry
116 -MKSHLIB = $(LD) $(DSO_LDOPTS) -blibpath:/usr/lib:/lib -lc -lm
117 +DSO_LDOPTS = -Wl,-brtl -Wl,-bnortllib
118 +MKSHLIB = $(CC) --shared $(DSO_LDOPTS) -Wl,-blibpath:/usr/lib:/lib -lc -lm
120 AIX_WRAP = $(DIST)/lib/aixwrap.o
121 AIX_TMP = $(OBJDIR)/_aix_tmp.o
124 -DSO_LDOPTS += -bexport:$(MAPFILE)
125 +DSO_LDOPTS += -Wl,-bexport:$(MAPFILE)
127 -DSO_LDOPTS += -bexpall
128 +DSO_LDOPTS += -Wl,-bexpall
131 PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
132 sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' > $@
135 - OPTIMIZER += -qmaxmem=-1
139 OS_CFLAGS += -DAIX_64BIT