Use gcc's -Wl flag to pass a linker flag to the linker.
authorwtc%netscape.com
Thu, 14 Jun 2001 05:31:14 +0000
changeset 1942 602603888ed05a79e5ede84cd3dfabf147be1e27
parent 1941 9766815decf67a388bbc7d61ef3b300911b2c79b
child 1943 5ff10980e6be3ef514e25adfd36857fb0085d7e4
push idunknown
push userunknown
push dateunknown
Use gcc's -Wl flag to pass a linker flag to the linker.
pr/tests/Makefile.in
--- a/pr/tests/Makefile.in
+++ b/pr/tests/Makefile.in
@@ -250,17 +250,19 @@ ABSOLUTE_LIB_DIR = $(PWD)/$(dist_libdir)
 endif
 endif
 
 ifeq ($(OS_ARCH), IRIX)
     ifeq ($(USE_CPLUS), 1)
         CC = CC
     endif
     LDOPTS += -rpath $(ABSOLUTE_LIB_DIR)
-    ifndef NS_USE_GCC
+    ifdef NS_USE_GCC
+        LDOPTS += -Wl,-rdata_shared
+    else
         LDOPTS += -rdata_shared
     endif
 # For 6.x machines, include this flag
     ifeq ($(basename $(OS_RELEASE)),6)
         ifndef NS_USE_GCC
             ifeq ($(USE_N32),1)
                 LDOPTS += -n32
             else