summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-02-23 12:23:38 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-02-23 12:23:38 +0000
commit954187812fe276dbf92ddb3af849961e936ab5dc (patch)
tree3cda38e10c077f32c4bbfa191a3cd32bdcd8d1de
parent67101abdd69f40043548a401b33a9f1d4127f95b (diff)
Check for and define ERROR_CXXFLAGS and use them when building
Original commit message from CVS: * configure.ac: * ext/taglib/Makefile.am: Check for and define ERROR_CXXFLAGS and use them when building C++ code (#516509).
-rw-r--r--ChangeLog7
m---------common0
-rw-r--r--configure.ac10
-rw-r--r--ext/taglib/Makefile.am2
4 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 85d6d429..fc697b0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2008-02-23 Tim-Philipp Müller <tim at centricular dot net>
+ * configure.ac:
+ * ext/taglib/Makefile.am:
+ Check for and define ERROR_CXXFLAGS and use them when building
+ C++ code (#516509).
+
+2008-02-23 Tim-Philipp Müller <tim at centricular dot net>
+
* gst/goom/gstgoom.c: (goom_debug), (plugin_init):
* gst/goom/plugin_info.c: (goom_debug), (GST_CAT_DEFAULT),
(setOptimizedMethods):
diff --git a/common b/common
-Subproject bd6ec57040fe3fa93e21ca440dfe494e3ee1855
+Subproject ce296a6e04ac824523dbf7bf836f91e14012ab9
diff --git a/configure.ac b/configure.ac
index 54f33963..a6c3170d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -324,6 +324,9 @@ AG_GST_SET_PLUGINDIR
dnl define an ERROR_CFLAGS Makefile variable
AG_GST_SET_ERROR_CFLAGS($GST_CVS)
+dnl define an ERROR_CXXFLAGS Makefile variable
+AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
+
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
@@ -981,9 +984,12 @@ else
fi
AC_SUBST(DEPRECATED_CFLAGS)
-dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
+dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
+dnl at make time with e.g. make ERROR_CFLAGS=""
GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
+GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
AC_SUBST(GST_OPTION_CFLAGS)
+AC_SUBST(GST_OPTION_CXXFLAGS)
dnl our libraries need to be versioned correctly
AC_SUBST(GST_LT_LDFLAGS)
@@ -993,7 +999,9 @@ dnl prefer internal headers to already installed ones
dnl also add builddir include for enumtypes and marshal
dnl add ERROR_CFLAGS, but overridable
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
+GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CXXFLAGS)"
AC_SUBST(GST_CFLAGS)
+AC_SUBST(GST_CXXFLAGS)
AC_SUBST(GST_LIBS)
dnl LDFLAGS really should only contain flags, not libs - they get added before
diff --git a/ext/taglib/Makefile.am b/ext/taglib/Makefile.am
index adeaae6f..d9884eba 100644
--- a/ext/taglib/Makefile.am
+++ b/ext/taglib/Makefile.am
@@ -7,7 +7,7 @@ libgsttaglib_la_CFLAGS = \
$(TAGLIB_CFLAGS)
libgsttaglib_la_CXXFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_CFLAGS) \
+ $(GST_CXXFLAGS) \
$(TAGLIB_CFLAGS)
libgsttaglib_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR) \