Skip to content

Commit fab08fe

Browse files
Fix PHP8.4 build on macOS
1 parent 4bc381e commit fab08fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ if test "$PHP_SPX" = "yes"; then
1414

1515
CFLAGS="-Werror -Wall -O3 -pthread -std=gnu90"
1616

17+
if test "$(uname -s 2>/dev/null)" = "Darwin"
18+
then
19+
# see discussion here https://github.com/NoiseByNorthwest/php-spx/pull/270
20+
CFLAGS="$CFLAGS -Wno-typedef-redefinition"
21+
fi
22+
1723
if test "$PHP_SPX_DEV" = "yes"
1824
then
1925
CFLAGS="$CFLAGS -g"

0 commit comments

Comments
 (0)