[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Put CPPFLAGS in SWIG_PY_COMPILE and friends

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2003-08-16 02:03:54 CEST

Does anyone have any objection to this change? CPPFLAGS often
contains some necessary settings, and without it building the
bindings can fail. I'll go ahead and commit if no one screams.

* Makefile.in:
  Add $(CPPFLAGS) to SWIG_PY_COMPILE, SWIG_JAVA_COMPILE, and
  SWIG_PL_COMPILE.

--- Makefile.in (revision 6747)
+++ Makefile.in (working copy)
@@ -107,13 +107,13 @@
                 $(SVN_APR_INCLUDES)
 SWIG_LDFLAGS = @SWIG_LDFLAGS@
 SWIG_PY_INCLUDES = @SWIG_PY_INCLUDES@
-SWIG_PY_COMPILE = @SWIG_PY_COMPILE@
+SWIG_PY_COMPILE = @SWIG_PY_COMPILE@ $(CPPFLAGS)
 SWIG_PY_LINK = @SWIG_PY_LINK@
 SWIG_JAVA_INCLUDES = @SWIG_JAVA_INCLUDES@
-SWIG_JAVA_COMPILE = $(CC) -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
+SWIG_JAVA_COMPILE = $(CC) -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC $(CPPFLAGS)
 SWIG_JAVA_LINK = $(CC) -shared
 SWIG_PL_INCLUDES = @SWIG_PL_INCLUDES@
-SWIG_PL_COMPILE = @SWIG_PL_COMPILE@
+SWIG_PL_COMPILE = @SWIG_PL_COMPILE@ $(CPPFLAGS)
 SWIG_PL_LINK = @SWIG_PL_LINK@
 
 SVN_APR_INCLUDES = @SVN_APR_INCLUDES@

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 16 02:04:45 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.