summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-30 15:12:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-09-30 15:12:49 +0200
commit10cafea2bcb9d1607a381f9a697b944dd399b51b (patch)
treec06d3393578c11bf2b3d066ff626d1e914fc1481
parentd3c91ba5c2faf8a59778c35da559e5817772b95f (diff)
Clang does not support -fno-check-new (and it is the default for GCC anyway)
Change-Id: I7063439eb042f2abfafc06d48c4bccffd6c7762e
-rw-r--r--poppler/UnpackedTarball_poppler.mk1
-rw-r--r--poppler/poppler-nochecknew.patch.111
2 files changed, 12 insertions, 0 deletions
diff --git a/poppler/UnpackedTarball_poppler.mk b/poppler/UnpackedTarball_poppler.mk
index 35ecaf140fee..f3bf0db9d1a6 100644
--- a/poppler/UnpackedTarball_poppler.mk
+++ b/poppler/UnpackedTarball_poppler.mk
@@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,poppler,\
poppler/poppler-notests.patch.1 \
poppler/poppler-snprintf.patch.1 \
poppler/poppler-mac-fake.patch.1 \
+ poppler/poppler-nochecknew.patch.1 \
))
# vim: set noet sw=4 ts=4:
diff --git a/poppler/poppler-nochecknew.patch.1 b/poppler/poppler-nochecknew.patch.1
new file mode 100644
index 000000000000..1e4890fe758f
--- /dev/null
+++ b/poppler/poppler-nochecknew.patch.1
@@ -0,0 +1,11 @@
+--- poppler-0.22.5/configure
++++ poppler-0.22.5/configure
+@@ -24014,7 +24014,7 @@
+ fi
+ case "$enable_compile_warnings" in
+ no) ;;
+- yes) CXXFLAGS="-Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-check-new -fno-common $CXXFLAGS";
++ yes) CXXFLAGS="-Wall -Woverloaded-virtual -Wnon-virtual-dtor -Wcast-align -fno-exceptions -fno-common $CXXFLAGS";
+ CFLAGS="-Wall $CFLAGS" ;;
+ kde) CXXFLAGS="-Wnon-virtual-dtor -Wno-long-long -Wundef \
+ -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align \