]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* Rules (static-only-routines): Restore the rule to make these .so's
authorRoland McGrath <roland@gnu.org>
Fri, 24 May 1996 21:51:25 +0000 (21:51 +0000)
committerRoland McGrath <roland@gnu.org>
Fri, 24 May 1996 21:51:25 +0000 (21:51 +0000)
empty objects.

ChangeLog
Rules

index 3c637be4fe39333ac2f0434da3bccc2aeeb9a74f..b9ec48c240f3f74e793ab5b9758c11b90d157daa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Fri May 24 17:30:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
 
+       * Rules (static-only-routines): Restore the rule to make these .so's
+       empty objects.
+
        * login/pututline_r.c: Use struct assignment instead of memcpy.
 
        * login/getutline_r.c: Use strncmp instead of comparing two pointers
diff --git a/Rules b/Rules
index edfb1517d8000d4bcc1962a3cb90d7f8fc8ee194..1eae320dcd9f2da8412f38b918a12097a0b8eb5a 100644 (file)
--- a/Rules
+++ b/Rules
@@ -135,3 +135,16 @@ subdir_dist: dist
 # Convenient target to update all the generated source files.
 .PHONY: generated
 generated: $(addprefix $(objpfx),$(generated))
+
+ifndef libc.so-version
+# Undefine this because it can't work when we libc.so is unversioned.
+static-only-routines =
+endif
+
+ifdef static-only-routines
+# These routines are to be omitted from the shared library object,
+# so we replace the PIC objects for them with the empty object file.
+$(static-only-routines:%=$(objpfx)%.so): %.so: $(objpfx)empty.o
+       rm -f $@
+       ln $< $@
+endif