(build-shlib-helper): Don't use -z defs linker option if no-z-defs is
authordrepper <drepper>
Sun, 12 Jan 2003 23:08:56 +0000 (23:08 +0000)
committerdrepper <drepper>
Sun, 12 Jan 2003 23:08:56 +0000 (23:08 +0000)
defined either.

Makerules

index 169da4a..8dc2282 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -460,7 +460,7 @@ endif
 ifeq ($(elf),yes)
 define build-shlib-helper
 $(LINK.o) -shared $(static-libgcc) -Wl,-O1 $(sysdep-LDFLAGS) \
-         $(if $($(@F)-no-z-defs),,-Wl,-z,defs) $(config-LDFLAGS) \
+         $(if $($(@F)-no-z-defs)$(no-z-defs),,-Wl,-z,defs) $(config-LDFLAGS) \
          $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \
          $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
          -Wl,-soname=lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \