diff options
author | jhale <jhale@FreeBSD.org> | 2018-02-17 19:39:24 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2018-02-17 19:39:24 +0800 |
commit | de16cbf0855408d3703dc8806e0b58e47507c9a1 (patch) | |
tree | eb4a8ef3dc7f4a70386d40cbfa4f0854e96d98fc /x11-toolkits | |
parent | b32d3dc2faf13baf5680f23e20dcdf39a1d6512e (diff) | |
download | freebsd-ports-gnome-de16cbf0855408d3703dc8806e0b58e47507c9a1.tar.gz freebsd-ports-gnome-de16cbf0855408d3703dc8806e0b58e47507c9a1.tar.zst freebsd-ports-gnome-de16cbf0855408d3703dc8806e0b58e47507c9a1.zip |
Fix build on i386
/wrkdirs/usr/ports/x11-toolkits/fox17/work/fox-1.7.62/lib/.libs/libFOX-1.7.so: undefined reference to `__atomic_fetch_add_8'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Reported by: pkg-fallout
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp index 1bb43c1cb2b8..5d9668b8ef20 100644 --- a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp +++ b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp @@ -1,11 +1,20 @@ ---- lib/FXAtomic.cpp.orig 2016-11-19 22:24:23 UTC +--- lib/FXAtomic.cpp.orig 2017-11-29 04:44:13 UTC +++ lib/FXAtomic.cpp @@ -54,7 +54,7 @@ // New __atomic_XXX() builtins are available -#if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) -+#if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) || defined(__clang__) ++#if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) || (defined(__clang__) && defined(__x86_64__)) #define HAVE_BUILTIN_ATOMIC 1 #endif +@@ -64,7 +64,7 @@ + #endif + + // Can we use inline-assembly +-#if (defined(__GNUC__) || defined(__INTEL_COMPILER)) ++#if (defined(__GNUC__) || defined(__INTEL_COMPILER)) || defined(__clang__) + #define HAVE_INLINE_ASSEMBLY 1 + #endif + |