summaryrefslogtreecommitdiff
path: root/system/libffi/fix-testsuite-opts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/libffi/fix-testsuite-opts.patch')
-rw-r--r--system/libffi/fix-testsuite-opts.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/libffi/fix-testsuite-opts.patch b/system/libffi/fix-testsuite-opts.patch
new file mode 100644
index 000000000..b3d08b4af
--- /dev/null
+++ b/system/libffi/fix-testsuite-opts.patch
@@ -0,0 +1,11 @@
+--- libffi-3.2.1/testsuite/lib/libffi.old 2014-11-08 06:47:24.000000000 -0600
++++ libffi-3.2.1/testsuite/lib/libffi.exp 2019-07-22 13:29:32.086840387 -0500
+@@ -281,7 +281,7 @@
+ global using_gcc
+ if { [string match $using_gcc "yes"] } {
+ set common "-W -Wall -Wno-psabi"
+- set optimizations { "-O0" "-O2" "-O3" "-Os" "-O2 -fomit-frame-pointer" }
++ set optimizations { "-O0" "-O2 -fno-inline-small-functions" "-O3 -fno-inline-small-functions" "-Os" "-O2 -fno-inline-small-functions -fomit-frame-pointer" }
+ } else {
+ # Assume we are using the vendor compiler.
+ set common ""