apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46175] Full Mingw+MSys support
Date Fri, 01 Apr 2011 15:28:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46175

--- Comment #27 from Jeff Trawick <trawick@apache.org> 2011-04-01 11:28:04 EDT ---
This seems to work for creating CPPFLAGS which are used only for the build of
APR itself:

Index: configure.in
===================================================================
--- configure.in    (revision 1087516)
+++ configure.in    (working copy)
@@ -2668,6 +2668,7 @@

 dnl ----------------------------- Construct the files

+AC_SUBST(INTERNAL_CPPFLAGS)
 AC_SUBST(LDLIBS)
 AC_SUBST(INCLUDES)
 AC_SUBST(AR)
Index: build/apr_hints.m4
===================================================================
--- build/apr_hints.m4    (revision 1087516)
+++ build/apr_hints.m4    (working copy)
@@ -119,6 +119,7 @@
     APR_ADDTO(CPPFLAGS, [-DHPUX -D_REENTRANT])
     ;;
     *-linux*)
+        APR_ADDTO(INTERNAL_CPPFLAGS, -DJEFF)
         case `uname -r` in
         2.* )  APR_ADDTO(CPPFLAGS, [-DLINUX=2])
                ;;
Index: build/apr_rules.mk.in
===================================================================
--- build/apr_rules.mk.in    (revision 1087516)
+++ build/apr_rules.mk.in    (working copy)
@@ -55,6 +55,10 @@
 EXTRA_LIBS=@EXTRA_LIBS@
 EXTRA_INCLUDES=@EXTRA_INCLUDES@

+# CPPFLAGS which are valid only while building APR itself
+#
+INTERNAL_CPPFLAGS=@INTERNAL_CPPFLAGS@
+
 # NOTEST_* are flags and libraries that can be added by the user without
 # causing them to be used in configure tests (necessary for things like
 # -Werror and other strict warnings that maintainers like to use).
@@ -70,7 +74,7 @@
 # left-to-right precedence and CPPFLAGS may include user-defined overrides.
 #
 ALL_CFLAGS   = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS)
-ALL_CPPFLAGS = $(DEFS) $(EXTRA_CPPFLAGS) $(NOTEST_CPPFLAGS) $(CPPFLAGS)
+ALL_CPPFLAGS = $(DEFS) $(INTERNAL_CPPFLAGS) $(EXTRA_CPPFLAGS)
$(NOTEST_CPPFLAGS) $(CPPFLAGS)
 ALL_LDFLAGS  = $(EXTRA_LDFLAGS) $(NOTEST_LDFLAGS) $(LDFLAGS)
 ALL_LIBS     = $(LIBS) $(NOTEST_LIBS) $(EXTRA_LIBS)
 ALL_INCLUDES = $(INCLUDES) $(EXTRA_INCLUDES)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message