Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so Use -Wl, -Bsymbolic directly for clang



details:   https://anonhg.NetBSD.org/src/rev/bb9c1d50fca8
branches:  trunk
changeset: 765566:bb9c1d50fca8
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 30 16:30:01 2011 +0000

description:
Use -Wl,-Bsymbolic directly for clang

diffstat:

 libexec/ld.elf_so/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r e6e9528240c0 -r bb9c1d50fca8 libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile        Mon May 30 16:25:31 2011 +0000
+++ b/libexec/ld.elf_so/Makefile        Mon May 30 16:30:01 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.105 2011/05/20 22:22:44 joerg Exp $
+#      $NetBSD: Makefile,v 1.106 2011/05/30 16:30:01 joerg Exp $
 #
 # NOTE: when changing ld.so, ensure that ldd still compiles.
 #
@@ -38,7 +38,8 @@
      (${MACHINE_ARCH} == "vax")) &&                                    \
     ${MKPIC} != "no"
 
-LDFLAGS+=      -shared -symbolic -nostartfiles -nodefaultlibs
+LDFLAGS+=      ${${ACTIVE_CC} == "clang":? -Wl,-Bsymbolic : -symbolic} \
+               -shared -nostartfiles -nodefaultlibs
 LDFLAGS+=      -Wl,-static
 LDFLAGS+=      -Wl,--warn-shared-textrel
 



Home | Main Index | Thread Index | Old Index