This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Generate dependencies from $(native-compile)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 27 Apr 2012 15:24:54 +0000 (UTC)
- Subject: Generate dependencies from $(native-compile)
I propose this patch as another separable piece of the cross-rpcgen
changes: making $(native-compile) use $(compile-mkdep-flags) since we
want the dependency generation for cross-rpcgen. The dependency files
from $(native-compile) may or may not get used at present, but
improving the consistency of compilation commands is still an
improvement, and we can always separately arrange for the files to be
used. Tested x86_64.
2012-04-27 Joseph Myers <joseph@codesourcery.com>
* Makerules (native-compile): Use $(compile-mkdep-flags).
diff --git a/Makerules b/Makerules
index 18aeb9e..ddc614f 100644
--- a/Makerules
+++ b/Makerules
@@ -1118,7 +1118,7 @@ install: install-no-libc.a-nosubdir
define native-compile
$(make-target-directory)
$(BUILD_CC) $($(basename $(<F))-CFLAGS) $(ALL_BUILD_CFLAGS) \
- $< $(OUTPUT_OPTION) $(BUILD_LDFLAGS)
+ $< $(OUTPUT_OPTION) $(compile-mkdep-flags) $(BUILD_LDFLAGS)
endef
# We always want to use configuration definitions.
--
Joseph S. Myers
joseph@codesourcery.com