aboutsummaryrefslogtreecommitdiffstats
path: root/community/gcc6/053_all_libitm-no-fortify-source.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-30 15:58:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-30 15:58:34 +0000
commit667a2bccc28ffcad2cddb4b4cd1085382c521f50 (patch)
tree0ed54fb79abff9109aca23036b70613a5213a424 /community/gcc6/053_all_libitm-no-fortify-source.patch
parent5a2238501aacaf1b6c86507ac383022e1b09450e (diff)
downloadaports-667a2bccc28ffcad2cddb4b4cd1085382c521f50.tar.bz2
aports-667a2bccc28ffcad2cddb4b4cd1085382c521f50.tar.xz
community/gcc6: move from testing
needed too bootstrap openjdk7
Diffstat (limited to 'community/gcc6/053_all_libitm-no-fortify-source.patch')
-rw-r--r--community/gcc6/053_all_libitm-no-fortify-source.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/gcc6/053_all_libitm-no-fortify-source.patch b/community/gcc6/053_all_libitm-no-fortify-source.patch
new file mode 100644
index 0000000000..5ab15afc37
--- /dev/null
+++ b/community/gcc6/053_all_libitm-no-fortify-source.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/508852
+https://gcc.gnu.org/PR61164
+
+2014-04-27 Magnus Granberg <zorry@gentoo.org>
+
+ #508852
+ * libitm/configure.tgt: Disable FORTIFY
+
+--- a/libitm/configure.tgt
++++ b/libitm/configure.tgt
+@@ -43,6 +43,16 @@ if test "$gcc_cv_have_tls" = yes ; then
+ esac
+ fi
+
++# FIXME: error: inlining failed in call to always_inline
++# ‘int vfprintf(FILE*, const char*, __va_list_tag*)’
++# : function body can be overwritten at link time
++# Disable Fortify in libitm for now. #508852
++case "${target}" in
++ *-*-linux*)
++ XCFLAGS="${XCFLAGS} -U_FORTIFY_SOURCE"
++ ;;
++esac
++
+ # Map the target cpu to an ARCH sub-directory. At the same time,
+ # work out any special compilation flags as necessary.
+ case "${target_cpu}" in