summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichard <richard>2014-01-02 15:56:11 +0000
committerrichard <richard>2014-01-02 15:56:11 +0000
commitd6d6732f90e90f1dc8565d17c7697009dda4271e (patch)
tree0fc3d117664e4ef60cea6a83bff5f1838954f3d7
parentf761ff05dc229538332933b3bc11f2b402d93934 (diff)
downloadpkgsrc-d6d6732f90e90f1dc8565d17c7697009dda4271e.tar.gz
cipher/sha1-ssse3-amd64.S suffers a supposedly "infamous" problem wherein
expressions containing a '/' (divide) are problematic because according to the SUN x86 Assembly Language Reference Manual, '/' should be treated as starting comments. To get over this, gas has '--divide' do not treat `/' as a comment character
-rw-r--r--security/libgcrypt/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile
index 39d839fc9d7..37a68c62314 100644
--- a/security/libgcrypt/Makefile
+++ b/security/libgcrypt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2014/01/01 11:49:59 wiz Exp $
+# $NetBSD: Makefile,v 1.59 2014/01/02 15:56:11 richard Exp $
DISTNAME= libgcrypt-1.6.0
CATEGORIES= security
@@ -23,6 +23,8 @@ INFO_FILES= yes # PLIST
.include "../../mk/bsd.prefs.mk"
+CPPFLAGS.SunOS+= -Wa,--divide
+
.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) && \
empty(MACHINE_PLATFORM:MNetBSD-*-alpha) && \
empty(MACHINE_PLATFORM:MNetBSD-*-sparc) && \