aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/fox17
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2018-02-17 11:39:24 +0000
committerJason E. Hale <jhale@FreeBSD.org>2018-02-17 11:39:24 +0000
commita8376bb654ff67ebedc24dfd07ab53a02b17d33e (patch)
treeeb4a8ef3dc7f4a70386d40cbfa4f0854e96d98fc /x11-toolkits/fox17
parent95c1ce4da09a8f39663dbd2919fbcf87a7b9d7ae (diff)
downloadports-a8376bb654ff67ebedc24dfd07ab53a02b17d33e.tar.gz
ports-a8376bb654ff67ebedc24dfd07ab53a02b17d33e.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
Notes
Notes: svn path=/head/; revision=462099
Diffstat (limited to 'x11-toolkits/fox17')
-rw-r--r--x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp13
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
+