diff options
author | George Peter Banyard <girgias@php.net> | 2020-03-26 21:17:23 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-04-14 22:22:33 +0200 |
commit | a2a6c7f2272dc62c9da249186afcccdd8c4abca7 (patch) | |
tree | 52fe4864aa96d0ac092dcdfc76e594bfa92e29fc /ext/sodium | |
parent | 13938342f8fedb915cc2a7c3dc5a200018ba8446 (diff) | |
download | php-git-a2a6c7f2272dc62c9da249186afcccdd8c4abca7.tar.gz |
Add -Wno-type-limits compiler flag to Sodium extension
This may happen on 32bits
Diffstat (limited to 'ext/sodium')
-rw-r--r-- | ext/sodium/config.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sodium/config.m4 b/ext/sodium/config.m4 index 906e0ca7f2..0676b66910 100644 --- a/ext/sodium/config.m4 +++ b/ext/sodium/config.m4 @@ -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 |