* 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.
This commit is contained in:
Roland McGrath 1995-09-21 15:16:01 +00:00
parent 0324daa005
commit 10b40b115c
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
Thu Sep 21 00:03:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* 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.
* sysdeps/stub/sys/sem_buf.h (union semun): New type.
* sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call

View File

@ -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.