security/php72-hash: fix build with GCC-based architectures

Unbreak this Port on mips64 and powerpc64

PR:		231462 232160
Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>
Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
This commit is contained in:
Jochen Neumeister 2018-11-02 16:12:05 +00:00
parent 750fe11447
commit 2862d2c72d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483821
2 changed files with 5 additions and 3 deletions

View File

@ -131,6 +131,11 @@ CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
.if ${PHP_MODNAME} == "hash"
CONFIGURE_ARGS+=--enable-hash \
--with-mhash
CFLAGS_mips64= -DHAVE_SLOW_HASH3
CFLAGS_powerpc64= -DHAVE_SLOW_HASH3
CFLAGS_powerpc= -DHAVE_SLOW_HASH3
CFLAGS_powerpcspe= -DHAVE_SLOW_HASH3
CFLAGS_sparc64= -DHAVE_SLOW_HASH3
.endif
.if ${PHP_MODNAME} == "iconv"

View File

@ -6,9 +6,6 @@ MASTERDIR= ${.CURDIR}/../../lang/php72
PKGNAMESUFFIX= -hash
BROKEN_mips64= fails to compile: KeccakHash.h: No such file or directory
BROKEN_powerpc64= fails to compile: KeccakHash.h: No such file or directory
TEST_TARGET= test
.include "${MASTERDIR}/Makefile"