summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-09-30 11:17:10 +0000
committernia <nia@pkgsrc.org>2021-09-30 11:17:10 +0000
commit52757ae4df13b224f9e3da382b8c92ec05dbce16 (patch)
tree4dd1c26fd144ff807bf00c696b689aa4335d9f23
parent5341f681b414c846cdb3e8cf266c1d8481bea5bd (diff)
downloadpkgsrc-52757ae4df13b224f9e3da382b8c92ec05dbce16.tar.gz
gnupg: asm is unsafe for MKPIE on i386
-rw-r--r--security/gnupg/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 485fdc688ea..3535f48d18e 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.159 2021/09/29 19:01:16 adam Exp $
+# $NetBSD: Makefile,v 1.160 2021/09/30 11:17:10 nia Exp $
DISTNAME= gnupg-1.4.23
PKGREVISION= 13
@@ -32,6 +32,10 @@ CONFIGURE_ARGS+= --disable-gnupg-iconv
CONFIGURE_ARGS+= --disable-asm
.endif
+.if ${MACHINE_ARCH} == "i386" && ${PKGSRC_MKPIE:tl} == "yes"
+CONFIGURE_ARGS+= --disable-asm
+.endif
+
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
.endif