[git commit master] do not generate garbled interp

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Jun 8 21:21:09 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=0ee65752ee4c023a70d134919ec7604273e46cdb
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

for parallel make

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 Makerules |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makerules b/Makerules
index 63639ad..222c845 100644
--- a/Makerules
+++ b/Makerules
@@ -326,10 +326,11 @@ $(top_builddir)%.dep:
 
 $(top_builddir)lib/interp.c: | $(sub_headers)
 	$(Q)$(INSTALL) -d $(dir $@)
-	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
-	$(Q)echo "#include <features.h>" >> $@
+	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@.tmp
+	$(Q)echo "#include <features.h>" >> $@.tmp
 	$(Q)echo "const char __dl_ldso__[] attribute_hidden __attribute__ ((weak)) __attribute__ ((section " \
-		"(\".interp\"))) =\""$(RUNTIME_PREFIX)$(MULTILIB_DIR)/$(UCLIBC_LDSO)"\";" >> $@
+		"(\".interp\"))) =\""$(RUNTIME_PREFIX)$(MULTILIB_DIR)/$(UCLIBC_LDSO)"\";" >> $@.tmp
+	$(Q)mv $@.tmp $@
 
 $(interp): $(top_builddir)lib/interp.c
 	$(compile.c)
-- 
1.6.3.3



More information about the uClibc-cvs mailing list