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
This commit is contained in:
richard 2014-01-02 15:56:11 +00:00
parent 130b1a031e
commit d32ad70c12

View file

@ -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) && \