diff options
author | Kubilay Kocak <koobs@FreeBSD.org> | 2015-09-29 03:30:53 +0000 |
---|---|---|
committer | Kubilay Kocak <koobs@FreeBSD.org> | 2015-09-29 03:30:53 +0000 |
commit | 707766350b6d6d38f4bf24652a2c6e00e2920ce9 (patch) | |
tree | 2ca81bb2cd00cd4ba2a701c49f0584b0a72a7c62 | |
parent | 04758da3d65c9071fd2b9c6079f9e2fe2a5f7937 (diff) | |
download | ports-707766350b6d6d38f4bf24652a2c6e00e2920ce9.tar.gz ports-707766350b6d6d38f4bf24652a2c6e00e2920ce9.zip |
MFH: r398101: security/suricata: Disable -march=native
Suricata currently builds with GCC -march=native by default.
This can create problems if, for example, packages of this port are
built on ATOM servers but installed on AMD processors. In these and
other cases where the build host is not equal to the target host,
suricata can generate an Illegal instruction and refuse
to start.
It is ultimately preferable to explicitly cross-build and/or optimize
compilation for target architectures and processors. See: PEP20.
PR: 203296
Submitted by: Olivier Cochard <olivier cochard me>
Tested by: Olivier Cochard <olivier cochard me>
Approved by: portmgr (feld)
Notes
Notes:
svn path=/branches/2015Q3/; revision=398152
-rw-r--r-- | security/suricata/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/suricata/Makefile b/security/suricata/Makefile index 3c7d592da47d..93bbd0457b31 100644 --- a/security/suricata/Makefile +++ b/security/suricata/Makefile @@ -3,7 +3,7 @@ PORTNAME= suricata PORTVERSION= 2.0.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://www.openinfosecfoundation.org/download/ \ http://mirrors.rit.edu/zi/ @@ -105,6 +105,7 @@ CONFIGURE_ARGS+=--enable-gccprotect \ --with-libnet-libraries=${LOCALBASE}/lib/libnet11 \ --with-libhtp-includes=${LOCALBASE}/include/ \ --with-libhtp-libraries=${LOCALBASE}/lib \ + --disable-gccmarch-native \ --localstatedir=/var/ LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config |