From 8942a07afcba648c1766c8e94df65b92a555fdb3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 9 May 1996 16:50:03 +0000 Subject: * sysdeps/unix/sysv/linux/net/if.h: New file. * sysdeps/unix/sysv/linux/Dist: Add it. * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add net/if.h. * Makeconfig (link-libc): Add libc.a after libc.so in link. * Rules (static-only-routines rule): Use empty.o instead of dummy.o. (empty.o): New target. (generated): Add empty.c, empty.o. --- Rules | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Rules') diff --git a/Rules b/Rules index f0ae048..39c805bf 100644 --- a/Rules +++ b/Rules @@ -70,7 +70,11 @@ $(objpfx)dummy.o: @rm -f $(@:.o=.c) echo 'void __dummy__ () { }' > $(@:.o=.c) $(CC) -c $(@:.o=.c) -o $@ -generated := $(generated) dummy.o dummy.c +$(objpfx)empty.o: + @rm -f $(@:.o=.c) + echo '' > $(@:.o=.c) + $(CC) -c $(@:.o=.c) -o $@ +generated := $(generated) dummy.o dummy.c empty.c empty.o # This makes all the auxilliary and test programs. @@ -144,8 +148,8 @@ $(common-objpfx)sor-$(subdir): Makefile 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 dummy object file. -$(static-only-routines:%=$(objpfx)%.so): %.so: $(common-objpfx) dummy.o +# so we replace the PIC objects for them with the empty object file. +$(static-only-routines:%=$(objpfx)%.so): %.so: $(common-objpfx) empty.o rm -f $@ ln $< $@ endif -- cgit v1.1