aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-21 16:12:57 +0000
committerRoland McGrath <roland@gnu.org>1995-09-21 16:12:57 +0000
commit193bd2ce375f70365bcd025d7640a69dc41fb1f5 (patch)
treeecff0325fcfd1cb3258b776582a86dc95bee87fa /Makerules
parent10b40b115cf30ae7d4edf27ff90d5c4e59c0b311 (diff)
downloadglibc-193bd2ce375f70365bcd025d7640a69dc41fb1f5.zip
glibc-193bd2ce375f70365bcd025d7640a69dc41fb1f5.tar.gz
glibc-193bd2ce375f70365bcd025d7640a69dc41fb1f5.tar.bz2
* Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
$(notdir $*), so it wins for the explicit libc.so rule as well as the pattern rule.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index 04c4387..1899eb7 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)$(@F:lib%=%).so$($(@F)-version) \
- $(LDFLAGS.so) $(LDFLAGS-$(@F:lib%=%).so) \
+ -Wl,lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \
+ $(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \
-L$(firstword $(objdir) .) -L$(common-objpfx:%/=%) \
- -Wl,--whole-archive $^ $(LDLIBS-$(@F:lib%=%).so)
+ -Wl,--whole-archive $^ $(LDLIBS-$(@F:lib%.so=%).so)
endef
# Don't try to use -lc when making libc.so itself.