svn commit: r448487 - head/databases/redis-devel

Sergey A. Osokin osa at FreeBSD.org
Mon Aug 21 20:06:37 UTC 2017


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


More information about the svn-ports-head mailing list