Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2015 23:39:41 +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: r387524 - in head/benchmarks/wrk: . files
Message-ID:  <201505262339.t4QNdfCg060416@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: osa
Date: Tue May 26 23:39:40 2015
New Revision: 387524
URL: https://svnweb.freebsd.org/changeset/ports/387524

Log:
  Another attempt to fix undefined reference to `__sync_fetch_and_add_8' and
  `__sync_val_compare_and_swap_8' for FreeBSD[8|9].
  
  Idea from:	tijl

Deleted:
  head/benchmarks/wrk/files/patch-src-stats.h
Modified:
  head/benchmarks/wrk/Makefile

Modified: head/benchmarks/wrk/Makefile
==============================================================================
--- head/benchmarks/wrk/Makefile	Tue May 26 23:30:32 2015	(r387523)
+++ head/benchmarks/wrk/Makefile	Tue May 26 23:39:40 2015	(r387524)
@@ -3,6 +3,7 @@
 
 PORTNAME=	wrk
 PORTVERSION=	4.0.1
+PORTREVISION=	1
 CATEGORIES=	benchmarks www
 DISTNAME=	${PORTVERSION}
 DIST_SUBDIR=	${PORTNAME}
@@ -23,7 +24,14 @@ CFLAGS+=	-std=c99 -D_DECLARE_C99_LDBL_MA
 
 PLIST_FILES=	bin/wrk
 
+.include <bsd.port.pre.mk>
+
+# Port requires 64 bit atomics
+.if ${ARCH} == i386 && empty(MACHINE_CPU:Mi586)
+CFLAGS+=	-march=i586
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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