pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/redis redis: force -march=i586 on x86_32 to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e6040d86bf6
branches:  trunk
changeset: 310444:1e6040d86bf6
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Jul 15 23:35:35 2018 +0000

description:
redis: force -march=i586 on x86_32 to allow 8 byte atomics
(netbsd defaults to i486 and doesn't provide magic to hide this)

Fixes PR pkg/53451

diffstat:

 databases/redis/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6ad53565fa03 -r 1e6040d86bf6 databases/redis/Makefile
--- a/databases/redis/Makefile  Sun Jul 15 23:15:01 2018 +0000
+++ b/databases/redis/Makefile  Sun Jul 15 23:35:35 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2018/04/04 10:47:49 fhajny Exp $
+# $NetBSD: Makefile,v 1.38 2018/07/15 23:35:35 maya Exp $
 
 DISTNAME=      redis-4.0.9
 CATEGORIES=    databases
@@ -55,6 +55,11 @@
 post-extract:
        ${CHMOD} -R g-w ${WRKSRC}
 
+.if ${MACHINE_ARCH} == "i386"
+# Need 8 byte atomics.
+CFLAGS+=               -march=i586
+.endif
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/redis.conf ${DESTDIR}${EGDIR}/redis.conf.example
 .for file in ${DOCFILES}



Home | Main Index | Thread Index | Old Index