Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2018 11:39:24 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462099 - head/x11-toolkits/fox17/files
Message-ID:  <201802171139.w1HBdOaU067467@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802171139.w1HBdOaU067467>