summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-11-10 20:02:16 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-11-10 20:02:16 +0000
commit2a93f197e3ba42bce3b112af8c20c3267ec27b91 (patch)
tree51b49cc68ff080e4dad6ec7dc55483d91497adc1
parent8e628448466022a344cbf16e6ed8a8d40653908c (diff)
downloadfreebsd-ports-2a93f197e3ba42bce3b112af8c20c3267ec27b91.zip
Fix build on FreeBSD 10, lang/gcc now supports -fstack-protector-strong
but c++(1) from base doesn't
-rw-r--r--sysutils/xen-tools/files/patch-tools_qemu-xen_configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysutils/xen-tools/files/patch-tools_qemu-xen_configure b/sysutils/xen-tools/files/patch-tools_qemu-xen_configure
new file mode 100644
index 000000000000..316633041340
--- /dev/null
+++ b/sysutils/xen-tools/files/patch-tools_qemu-xen_configure
@@ -0,0 +1,10 @@
+--- tools/qemu-xen/configure.orig 2015-06-10 11:43:51 UTC
++++ tools/qemu-xen/configure
+@@ -1451,6 +1451,7 @@ if test "$stack_protector" != "no" ; the
+ # We need to check both a compile and a link, since some compiler
+ # setups fail only on a .c->.o compile and some only at link time
+ if do_cc $QEMU_CFLAGS -Werror $flag -c -o $TMPO $TMPC &&
++ do_cxx $QEMU_CXXFLAGS -Werror $flag -o $TMPE $TMPCXX $TMPO $LDFLAGS &&
+ compile_prog "-Werror $flag" ""; then
+ QEMU_CFLAGS="$QEMU_CFLAGS $flag"
+ LIBTOOLFLAGS="$LIBTOOLFLAGS -Wc,$flag"