This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Allow build-system programs to be built without optimization
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 27 Apr 2012 14:59:22 +0000 (UTC)
- Subject: Allow build-system programs to be built without optimization
Again splitting out pieces of the cross-rpcgen changes that ought to
be uncontroversial and able to be considered on their own: I propopse
this patch to config.h.in to allow programs for the build system to be
built without optimization. The various uses of $(native-compile) set
-CFLAGS values including -O, but I see no reason why it should be
necessary to do so for either those programs or for cross-rpcgen; the
technical reasons to require optimization only apply to glibc itself,
not to miscellaneous build-system programs. Tested x86_64.
2012-04-27 Joseph Myers <joseph@codesourcery.com>
* config.h.in [IS_IN_build]: Allow compiling without optimization.
diff --git a/config.h.in b/config.h.in
index 3b938f8..81704a1 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,4 +1,5 @@
-#if !defined __ASSEMBLER__ && !defined _ISOMAC && !defined __OPTIMIZE__
+#if !defined IS_IN_build && !defined __ASSEMBLER__ && !defined _ISOMAC \
+ && !defined __OPTIMIZE__
# error "glibc cannot be compiled without optimization"
#endif
--
Joseph S. Myers
joseph@codesourcery.com