From 193ce8dcd6c1eea5c68e6d4d8db2002c0085925b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 1 Apr 1995 09:07:31 +0000 Subject: * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and parent objdirs. * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by filtering out $($(lib)-inhibit-o); use that instead of $(object-suffixes) in all the other variables. --- Makerules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 2b4af3e417..f3fdb37c2f 100644 --- a/Makerules +++ b/Makerules @@ -341,7 +341,9 @@ ifeq (yes,$(build-shared)) # $(LDLIBS-%.so) may contain -l switches to generate run-time dependencies # on other shared objects. lib%.so: lib%_pic.a - $(LINK.o) -shared -o $@ -Wl,--whole-archive $< $(LDLIBS-$*.so) + $(LINK.o) -shared -o $@ -Wl,--whole-archive $< \ + -L$(firstword $(objdir) .) -L$(common-objpfx:%/=%) \ + $(LDLIBS-$*.so) endif libobjs: $(foreach o,$(object-suffixes),\ -- cgit 1.4.1