svn commit: r462099 - head/x11-toolkits/fox17/files
Jason E. Hale
jhale at FreeBSD.org
Sat Feb 17 11:39:25 UTC 2018
Author: jhale
Date: Sat Feb 17 11:39:24 2018
New Revision: 462099
URL: https://svnweb.freebsd.org/changeset/ports/462099
Log:
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
Modified:
head/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
Modified: head/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
==============================================================================
--- head/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp Sat Feb 17 11:35:12 2018 (r462098)
+++ head/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp Sat Feb 17 11:39:24 2018 (r462099)
@@ -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
More information about the svn-ports-head
mailing list