public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* How to patch fixincludes/Makefile for Interix?
@ 2011-06-03 17:01 Douglas B Rupp
  2011-06-03 17:17 ` Bruce Korb
  0 siblings, 1 reply; 8+ messages in thread
From: Douglas B Rupp @ 2011-06-03 17:01 UTC (permalink / raw)
  To: gcc-patches, bkorb


I've been working on a resurrection patch for Interix, one remaining 
problem is fixincludes/fixincl.c must be compiled on native Interix with 
-D_ALL_SOURCE in order to find the getpagesize prototype.

This works (taking some liberties with diff...):

fixincludes/Makefile.in
-FIXINC_CFLAGS = -DHAVE_CONFIG_H $(INCLUDES)
+FIXINC_CFLAGS = -DHAVE_CONFIG_H $(INCLUDES) -D_ALL_SOURCE

Obviously unacceptable in general.
Fixincludes ignores a config/mh-interix, so adding
FIXINC_CFLAGS += -D_ALL_SOURCE doesn't work.

What is the correct solution? Any advice would be greatly appreciated.

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

end of thread, other threads:[~2011-06-08  6:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 17:01 How to patch fixincludes/Makefile for Interix? Douglas B Rupp
2011-06-03 17:17 ` Bruce Korb
2011-06-04 20:43   ` [PATCH] fixincludes/Makefile for Interix Douglas B Rupp
2011-06-05 17:19     ` Bruce Korb
2011-06-07  4:37       ` [PATCH] fixincludes/Makefile for Interix Rev 2 Douglas B Rupp
2011-06-07  7:20         ` Paolo Bonzini
2011-06-08  6:29           ` [PATCH] fixincludes/Makefile for Interix Rev 3 Douglas B Rupp
2011-06-08  7:47             ` Paolo Bonzini

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).