summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-03-25 19:27:56 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-03-25 19:27:56 +0000
commit8b49628cd458f9a87e376e75ee4a24373842f945 (patch)
tree6465eb1a6f76a126fd4897621bb11cb1445e5b49 /Rules.mak
parent00ebae02f6ca670bf25be06f581bd36d0088f357 (diff)
- do not pass -Wl with -shared in LDFLAGS_NOSTRIP (Peter S. Mazinger)
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index fa6af537a..37c3a4e6f 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -444,7 +444,7 @@ ifeq ($(TARGET_ARCH),frv)
# -shared by itself would get us global function descriptors
# and calls through PLTs, dynamic resolution of symbols, etc,
# which would break as well, but -Bsymbolic comes to the rescue.
- export LDPIEFLAG:=-Wl,-shared -Wl,-Bsymbolic
+ export LDPIEFLAG:=-shared -Wl,-Bsymbolic
UCLIBC_LDSO=ld.so.1
endif
@@ -550,7 +550,7 @@ ifneq ($(HAVE_SHARED),y)
CFLAGS += -DSTATIC
endif
-LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -Wl,-shared \
+LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -shared \
-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc
# binutils-2.16.1 warns about ignored sections, 2.16.91.0.3 and newer are ok
#LDFLAGS_NOSTRIP+=$(call check_ld,--gc-sections)