MFH: r480029

Fix runtime error: remove -march=native as optimisation target

Details:
The upstream Makefile contains -march=native as optimisation which leads
to unconditional use of AVX instructions if built on a machine that has
AVX support. Subsequently this causes SIGILL on processors without AVX,
including latest-generation Atom descendants.

PR:		225922
Reported by:	arthur@qeng-ho.org
Approved by:	hsw@bitmark.com (maintainer, implicit)

Approved by:	ports-secteam (riggs)
This commit is contained in:
Thomas Zander 2018-09-18 15:10:04 +00:00
parent 4aa6477026
commit 32d7b113e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q3/; revision=480031

View File

@ -3,6 +3,7 @@
PORTNAME= libargon2
PORTVERSION= 20171227
PORTREVISION= 1
CATEGORIES= security devel
MAINTAINER= hsw@bitmark.com
@ -20,7 +21,8 @@ GH_PROJECT= phc-winner-argon2
MAKE_JOBS_UNSAFE= yes
LIBARGON2= libargon2.so.0
MAKE_ARGS+= SO_LDFLAGS="-shared -Wl,-soname=${LIBARGON2}"
MAKE_ARGS+= SO_LDFLAGS="-shared -Wl,-soname=${LIBARGON2}" \
OPTTARGET="generic"
# remove multiarch as this is only for Linux
SUBST= s/@HOST_MULTIARCH@//g;