summary refs log tree commit diff
path: root/Rules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-09 16:50:03 +0000
committerRoland McGrath <roland@gnu.org>1996-05-09 16:50:03 +0000
commit8942a07afcba648c1766c8e94df65b92a555fdb3 (patch)
treeec7a302869597c675104248a8427cd3520c02fd9 /Rules
parent557072655748be14a747242135f1b34eff9f735f (diff)
downloadglibc-8942a07afcba648c1766c8e94df65b92a555fdb3.tar.gz
glibc-8942a07afcba648c1766c8e94df65b92a555fdb3.tar.xz
glibc-8942a07afcba648c1766c8e94df65b92a555fdb3.zip
* 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.
Diffstat (limited to 'Rules')
-rw-r--r--Rules10
1 files changed, 7 insertions, 3 deletions
diff --git a/Rules b/Rules
index f0ae048153..39c805bff1 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