Module Name: src Committed By: joerg Date: Mon May 30 16:30:01 UTC 2011
Modified Files: src/libexec/ld.elf_so: Makefile Log Message: Use -Wl,-Bsymbolic directly for clang To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src/libexec/ld.elf_so/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/libexec/ld.elf_so/Makefile diff -u src/libexec/ld.elf_so/Makefile:1.105 src/libexec/ld.elf_so/Makefile:1.106 --- src/libexec/ld.elf_so/Makefile:1.105 Fri May 20 22:22:44 2011 +++ src/libexec/ld.elf_so/Makefile Mon May 30 16:30:01 2011 @@ -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