Add -Wno-type-limits compiler flag to Sodium extension

This may happen on 32bits
This commit is contained in:
George Peter Banyard 2020-03-26 21:17:23 +01:00
parent 13938342f8
commit a2a6c7f227

View File

@ -11,6 +11,8 @@ if test "$PHP_SODIUM" != "no"; then
AC_DEFINE(HAVE_LIBSODIUMLIB, 1, [ ])
PHP_NEW_EXTENSION(sodium, libsodium.c sodium_pwhash.c, $ext_shared)
dnl Add -Wno-type-limits as this may arise on 32bits platforms
SODIUM_COMPILER_FLAGS="$LIBSODIUM_CFLAGS -Wno-type-limits"
PHP_NEW_EXTENSION(sodium, libsodium.c sodium_pwhash.c, $ext_shared, , $SODIUM_COMPILER_FLAGS)
PHP_SUBST(SODIUM_SHARED_LIBADD)
fi