summarylogtreecommitdiffstats
path: root/go_test_explicitly_link_libffi.patch
diff options
context:
space:
mode:
authorkwantam2018-09-30 17:06:03 -0700
committerkwantam2018-09-30 18:09:28 -0700
commit98c90ef6eb999522376f3d3f05c39be73c46b81d (patch)
tree2bf5c7b53cdf30fb28c9535e2e691295e95dcc5a /go_test_explicitly_link_libffi.patch
parent4faf66a1787b6123711a49e71b1d0cd84d0f2ab6 (diff)
downloadaur-98c90ef6eb999522376f3d3f05c39be73c46b81d.tar.gz
3.8.1-5: fix broken build due to gcc updates
Diffstat (limited to 'go_test_explicitly_link_libffi.patch')
-rw-r--r--go_test_explicitly_link_libffi.patch8
1 files changed, 8 insertions, 0 deletions
diff --git a/go_test_explicitly_link_libffi.patch b/go_test_explicitly_link_libffi.patch
new file mode 100644
index 00000000000..5e6611fd046
--- /dev/null
+++ b/go_test_explicitly_link_libffi.patch
@@ -0,0 +1,8 @@
+--- test/Bindings/Go/lit.local.cfg
++++ test/Bindings/Go/lit.local.cfg
+@@ -57,4 +57,4 @@
+
+ config.environment['CC'] = fixup_compiler_path(config.host_cc)
+ config.environment['CXX'] = fixup_compiler_path(config.host_cxx)
+-config.environment['CGO_LDFLAGS'] = config.host_ldflags
++config.environment['CGO_LDFLAGS'] = "-lffi " + config.host_ldflags