about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-15 22:51:30 +0000
committerRoland McGrath <roland@gnu.org>2002-11-15 22:51:30 +0000
commit92712dee6828b76b2646d853328cf030eacd36b1 (patch)
treec47fb508e31e6fdd4fef2bea5f1e9808632ff402 /Makerules
parent53da80ab8870138b81b212c540c32b5c1eeccaf4 (diff)
downloadglibc-92712dee6828b76b2646d853328cf030eacd36b1.tar.gz
glibc-92712dee6828b76b2646d853328cf030eacd36b1.tar.xz
glibc-92712dee6828b76b2646d853328cf030eacd36b1.zip
* sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
	* sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.

2002-11-15  Roland McGrath  <roland@redhat.com>

	* math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
	* Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
	from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
	(+make-include-of-dep): New canned sequence.

	* stdlib/canonicalize.c (__realpath): Check for malloc failure.
	From Dmitry V. Levin <ldv@altlinux.org>.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 89e8c0eb58..d8d7f970ba 100644
--- a/Makerules
+++ b/Makerules
@@ -283,6 +283,8 @@ $(+sysdir_pfx)sysd-rules: $(+sysdir_pfx)config.make $(..)Makerules \
 		\$$(+make-deps)";					      \
 	   echo "\$$(objpfx)rtld-%.d: $$dir/%.c \$$(before-compile); \
 		\$$(+make-deps)";					      \
+	   echo "\$$(objpfx)m_%.S: $$dir/s_%.S; \$$(+make-include-of-dep)";   \
+	   echo "\$$(objpfx)m_%.c: $$dir/s_%.c; \$$(+make-include-of-dep)";   \
 	 done;								      \
 	 echo 'sysd-rules-done = t') > $@T
 	mv -f $@T $@
@@ -292,6 +294,12 @@ ifndef sysd-rules-done
 no_deps=t
 endif
 
+# This is used by the m_%.[Sc] pattern rules in sysd-rules.
+define +make-include-of-dep
+echo '#include <$<>' > $@T
+mv -f $@T $@
+endef
+
 # Generate version maps, but wait until sysdep-subdirs is known
 ifeq ($(sysd-sorted-done),t)
 ifeq ($(versioning),yes)