aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2014-12-31 23:46:11 +0800
committernaddy <naddy@FreeBSD.org>2014-12-31 23:46:11 +0800
commitf76677f59bdcbc6242b2fe2cb35dbff0af7d1d46 (patch)
treeded7f4424f4a0016471964804551296dcf395523 /audio
parent49e5720f27acd4751a5c9195c3e4a738df9a8989 (diff)
downloadfreebsd-ports-gnome-f76677f59bdcbc6242b2fe2cb35dbff0af7d1d46.tar.gz
freebsd-ports-gnome-f76677f59bdcbc6242b2fe2cb35dbff0af7d1d46.tar.zst
freebsd-ports-gnome-f76677f59bdcbc6242b2fe2cb35dbff0af7d1d46.zip
On i386, setting CPUTYPE=pentium-m or such will cause __SSE__ to
appear. This in turn triggers an #ifdef branch that tries to include <cpuid.h>, but gcc on 9.x doesn't have that header. Make query_cpu_support() skip cpuid and always return 0 as it is only used for a sanity check that we don't need. PR: 195881
Diffstat (limited to 'audio')
-rw-r--r--audio/opus-tools/files/patch-src_cpusupport.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/opus-tools/files/patch-src_cpusupport.h b/audio/opus-tools/files/patch-src_cpusupport.h
new file mode 100644
index 000000000000..c2e0b15e8daa
--- /dev/null
+++ b/audio/opus-tools/files/patch-src_cpusupport.h
@@ -0,0 +1,13 @@
+--- src/cpusupport.h.orig 2012-12-17 23:17:07 UTC
++++ src/cpusupport.h
+@@ -33,7 +33,9 @@
+ on a host without those instructions. Therefore we disable
+ the query both if the compiler isn't supporting SSE, and on
+ targets which are guaranteed to have SSE. */
+-# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__)
++/* XXX GCC on FreeBSD 9 does not have <cpuid.h>. On i386, __SSE__ can
++ appear with -march=CPU-TYPE, so disable the SSE check completely. */
++# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__) || defined(__i386__)
+ # define query_cpu_support() 0
+ # else
+