public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 20/20] Include config.h in MIN-CPPFLAGS
@ 2014-08-21 18:00 Siddhesh Poyarekar
  2014-08-22  5:31 ` [PATCH v1.1 " Siddhesh Poyarekar
  0 siblings, 1 reply; 6+ messages in thread
From: Siddhesh Poyarekar @ 2014-08-21 18:00 UTC (permalink / raw)
  To: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

This is needed when processing the Versions files since they could
refer to macros defined in config.h.  config.h was earlier included
through libc-symbols.h but since MIN-CPPFLAGS does not include the
latter anymore, it needs to at least include config.h.

This was causing a difference in generated code on s390x.  With this
change, s390x code is also unchanged with this and other 19 patches
(barring the IN_LIB patch of course).

	* Makeconfig (MIN-CPPFLAGS): Include config.h.
---
 Makeconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makeconfig b/Makeconfig
index df26cd0..38f4851 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -845,6 +845,7 @@ override CXXFLAGS = $(c++-sysincludes) \
 MIN-CPPFLAGS = $(config-extra-cppflags) $(CPPUNDEFS) $(CPPFLAGS-config) \
 	   $($(subdir)-CPPFLAGS) \
 	   $(+includes) $(defines) $(sysdep-CPPFLAGS) \
+	   -include $(common-objpfx)config.h \
 	   $(CPPFLAGS-$(suffix $@)) \
 	   $(foreach lib,$(libof-$(basename $(@F))) \
 			 $(libof-$(<F)) $(libof-$(@F)),$(CPPFLAGS-$(lib))) \
-- 
1.9.3


[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-08-25  7:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-21 18:00 [PATCH 20/20] Include config.h in MIN-CPPFLAGS Siddhesh Poyarekar
2014-08-22  5:31 ` [PATCH v1.1 " Siddhesh Poyarekar
2014-08-22 13:32   ` Stefan Liebler
2014-08-22 14:22     ` Siddhesh Poyarekar
2014-08-22 18:31     ` Siddhesh Poyarekar
2014-08-25  7:28       ` Stefan Liebler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).