about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3b1cefa7ae..e3ec603ced 100644
--- a/Makefile
+++ b/Makefile
@@ -103,8 +103,13 @@ include Makerules
 # Install from subdirectories too.
 install: subdir_install
 
-lib-noranlib $(libc.a)(__.SYMDEF): subdir_lib
+# Build subdirectory lib objects.
+lib-noranlib: subdir_lib
 
+ifeq (yes,$(build-shared))
+# Build the shared object from the PIC object library.
+lib: $(common-objpfx)libc.so
+endif
 
 $(objpfx)sysd-dirs: $(+sysdir_pfx)config.make
 	(echo define sysdep-subdirs;					      \