mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
* Rules (static-only-routines): Restore the rule to make these .so's
empty objects.
This commit is contained in:
parent
41f27456ac
commit
5790c439f9
@ -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
|
||||
|
13
Rules
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user