From 5790c439f9737da1a7985f3716b3aed39e79618b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 24 May 1996 21:51:25 +0000 Subject: * Rules (static-only-routines): Restore the rule to make these .so's empty objects. --- Rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Rules') 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 -- cgit v1.2.3