about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-04-01 09:07:31 +0000
committerRoland McGrath <roland@gnu.org>1995-04-01 09:07:31 +0000
commit193ce8dcd6c1eea5c68e6d4d8db2002c0085925b (patch)
tree92e499fa24dc5292e2bb3d2be2d473c1bf3e5b52 /Makerules
parent2f8033d6067fff3e7d77bb2174a9564bd7199cea (diff)
downloadglibc-193ce8dcd6c1eea5c68e6d4d8db2002c0085925b.tar.gz
glibc-193ce8dcd6c1eea5c68e6d4d8db2002c0085925b.tar.xz
glibc-193ce8dcd6c1eea5c68e6d4d8db2002c0085925b.zip
* Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and cvs/libc-950402
 	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.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules4
1 files changed, 3 insertions, 1 deletions
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),\