Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2017 20:06:36 +0000 (UTC)
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r448487 - head/databases/redis-devel
Message-ID:  <201708212006.v7LK6aSf085160@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: osa
Date: Mon Aug 21 20:06:35 2017
New Revision: 448487
URL: https://svnweb.freebsd.org/changeset/ports/448487

Log:
  Attempt to fix the issue for 10.x, 11.x and head on i386.
  
  networking.o: In function `createClient':
  networking.c:(.text+0x189): undefined reference to `__atomic_fetch_add_8'
  cc: error: linker command failed with exit code 1 (use -v to see invocation)
  
  Do not bump PORTREVISION since this change affects i386 only what's broken till now.

Modified:
  head/databases/redis-devel/Makefile

Modified: head/databases/redis-devel/Makefile
==============================================================================
--- head/databases/redis-devel/Makefile	Mon Aug 21 18:56:09 2017	(r448486)
+++ head/databases/redis-devel/Makefile	Mon Aug 21 20:06:35 2017	(r448487)
@@ -12,8 +12,6 @@ COMMENT=	Persistent key-value database with built-in n
 
 LICENSE=	BSD3CLAUSE
 
-BROKEN_FreeBSD_10_i386=	undefined reference to __atomic_fetch_add_8
-
 USES=		execinfo
 
 OPTIONS_DEFINE=	TESTS TRIB
@@ -26,6 +24,11 @@ TESTS_DESC=	Install lang/tcl for redis unit tests
 TRIB_DESC=	Install redis-trib.rb (lang/ruby req.)
 
 .include <bsd.port.options.mk>
+
+.if ${ARCH} == i386 && ! ${CFLAGS:M-march=*}
+# Needed for __atomic_fetch_add_8
+CFLAGS+=	-march=i586
+.endif
 
 .if ${PORT_OPTIONS:MTRIB}
 CATEGORIES+=	ruby



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