aboutsummaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-24 21:51:25 +0000
committerRoland McGrath <roland@gnu.org>1996-05-24 21:51:25 +0000
commit5790c439f9737da1a7985f3716b3aed39e79618b (patch)
treeca5143318ef2aac2d1686234a5e8a1447bc6c940 /Rules
parent41f27456aca79bb327a6312a801d6804b9e4197f (diff)
downloadglibc-5790c439f9737da1a7985f3716b3aed39e79618b.tar
glibc-5790c439f9737da1a7985f3716b3aed39e79618b.tar.gz
glibc-5790c439f9737da1a7985f3716b3aed39e79618b.tar.bz2
glibc-5790c439f9737da1a7985f3716b3aed39e79618b.zip
* Rules (static-only-routines): Restore the rule to make these .so's
empty objects.
Diffstat (limited to 'Rules')
-rw-r--r--Rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/Rules b/Rules
index edfb1517d8..1eae320dcd 100644
--- 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