1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Only pass `-mssse3' on amd64 where it is required, generally respect CFLAGS,

and thus unbreak the port on some tier-2 architectures.

Tested on:	i386, amd64, powerpc (gcc49), sparc64 (gcc47)
This commit is contained in:
Alexey Dokuchaev 2018-01-09 07:28:22 +00:00
parent daf4f8023b
commit 52353e34b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458512

View File

@ -14,11 +14,11 @@ LICENSE= BSD2CLAUSE
BROKEN_aarch64= fails to compile: error: invalid conversion between vector type and integer type
BROKEN_armv6= fails to compile: error: invalid conversion between vector type and integer type
BROKEN_armv7= fails to compile: error: invalid conversion between vector type and integer type
BROKEN_powerpc64= fails to compile: error: unrecognized command line option -mssse3
BROKEN_sparc64= fails to compile: error: unrecognized command line option -mssse3
USES= tar:bzip2 compiler:c11
CFLAGS_amd64= -mssse3
PLIST_FILES= bin/ipup \
bin/ipdb \
bin/ipdb-update.sh \
@ -27,4 +27,9 @@ PLIST_FILES= bin/ipup \
man/man1/ipdb.1.gz \
man/man1/ipdb-update.sh.1.gz
post-patch:
@${REINPLACE_CMD} -e 's|-g0 -Ofast -mssse3|${CFLAGS}|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/tmmintrin\.h/d' ${WRKSRC}/store.c
.include <bsd.port.mk>