diff options
author | mi <mi@FreeBSD.org> | 2017-01-18 08:31:10 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2017-01-18 08:31:10 +0800 |
commit | abe7480e08b27c01e2cbd6dc8c9e62fdb77746ff (patch) | |
tree | d1e588710d10fa5e94432809989e0cb4f2b60d73 /multimedia | |
parent | 8abf2f3af4b682a74b4636e7c692f164724ca811 (diff) | |
download | freebsd-ports-gnome-abe7480e08b27c01e2cbd6dc8c9e62fdb77746ff.tar.gz freebsd-ports-gnome-abe7480e08b27c01e2cbd6dc8c9e62fdb77746ff.tar.zst freebsd-ports-gnome-abe7480e08b27c01e2cbd6dc8c9e62fdb77746ff.zip |
Add a patch to avoid providing our own implementation of __rtdsc
when built with clang version 4 or higher (which has its own).
PR: 216162
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/x265/files/patch-rdtsc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/multimedia/x265/files/patch-rdtsc b/multimedia/x265/files/patch-rdtsc new file mode 100644 index 000000000000..ea8653b0ccd4 --- /dev/null +++ b/multimedia/x265/files/patch-rdtsc @@ -0,0 +1,9 @@ +--- test/testharness.h 2016-12-23 00:57:39.000000000 -0500 ++++ test/testharness.h 2017-01-17 15:46:38.623298000 -0500 +@@ -69,5 +69,5 @@ + #elif HAVE_RDTSC + #include <intrin.h> +-#elif defined(__GNUC__) ++#elif defined(__GNUC__) && (!defined(__clang__) || __clang_major__ < 4) + /* fallback for older GCC/MinGW */ + static inline uint32_t __rdtsc(void) |