From 10b40b115cf30ae7d4edf27ff90d5c4e59c0b311 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 21 Sep 1995 15:16:01 +0000 Subject: * Makerules (build-shlib): Use $(@F:lib%=%) in place of $(notdir $*), so it wins for the explicit libc.so rule as well as the pattern rule. --- Makerules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index a781c43921..04c43871ad 100644 --- a/Makerules +++ b/Makerules @@ -554,10 +554,10 @@ lib%.so: lib%_pic.a; $(build-shlib) define build-shlib $(LINK.o) -shared -o $@ -Wl,-soname \ - -Wl,lib$(libprefix)$(notdir $*).so$($(@F)-version) \ - $(LDFLAGS.so) $(LDFLAGS-$(notdir $*).so) \ + -Wl,lib$(libprefix)$(@F:lib%=%).so$($(@F)-version) \ + $(LDFLAGS.so) $(LDFLAGS-$(@F:lib%=%).so) \ -L$(firstword $(objdir) .) -L$(common-objpfx:%/=%) \ - -Wl,--whole-archive $^ $(LDLIBS-$(notdir $*).so) + -Wl,--whole-archive $^ $(LDLIBS-$(@F:lib%=%).so) endef # Don't try to use -lc when making libc.so itself. -- cgit 1.4.1