summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-21 21:28:00 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-21 21:28:00 +0100
commit3e9ad2447b2abd3220b272468d31f903279d22f2 (patch)
treea96725dce9de06f2626b9f384ee92443ed84b1a0 /packages
parent4c6bf028232ee5165f55622e123bba3b9fdb77a4 (diff)
downloadembtoolkit-3e9ad2447b2abd3220b272468d31f903279d22f2.tar.gz
embtoolkit-3e9ad2447b2abd3220b272468d31f903279d22f2.tar.bz2
embtoolkit-3e9ad2447b2abd3220b272468d31f903279d22f2.tar.xz
Move commit 4c6bf028232ee51 workaround to gtest makefile
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/development/gtest/gtest.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/development/gtest/gtest.mk b/packages/development/gtest/gtest.mk
index fbdf4e1..17ea5e8 100644
--- a/packages/development/gtest/gtest.mk
+++ b/packages/development/gtest/gtest.mk
@@ -32,6 +32,12 @@ GTEST_BUILD_DIR := $(embtk_pkgb)/gtest-$(GTEST_VERSION)
GTEST_EMBTK_DIR := $(EMBTK_ROOT)/packages/development/gtest
__embtk_gtest_cflags := $(TARGET_CFLAGS)
+#
+# FIXME: remove this when c++ exceptions handling fully supported in ARM
+#
+ifeq ($(TARGETCXX),$(TARGETGCXX))
+__embtk_gtest_cflags := $(filter-out $(__clang_cflags),$(__embtk_gtest_cflags))
+endif
GTEST_MAKE_OPTS := CC="$(TARGETCC)" CXX="$(TARGETCXX)"
GTEST_MAKE_OPTS += CFLAGS="$(__embtk_gtest_cflags)" LIBDIR="$(LIBDIR)"