svn commit: r387524 - in head/benchmarks/wrk: . files
Sergey A. Osokin
osa at FreeBSD.org
Tue May 26 23:39:41 UTC 2015
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>
More information about the svn-ports-all
mailing list