pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libgcrypt cipher/sha1-ssse3-amd64.S suffers a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/621bc10a68c1
branches:  trunk
changeset: 628438:621bc10a68c1
user:      richard <richard%pkgsrc.org@localhost>
date:      Thu Jan 02 15:56:11 2014 +0000

description:
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

diffstat:

 security/libgcrypt/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 252f65b254e9 -r 621bc10a68c1 security/libgcrypt/Makefile
--- a/security/libgcrypt/Makefile       Thu Jan 02 15:52:56 2014 +0000
+++ b/security/libgcrypt/Makefile       Thu Jan 02 15:56:11 2014 +0000
@@ -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 @@
 
 .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) && \



Home | Main Index | Thread Index | Old Index