Skip to content

Commit 2f1d822

Browse files
committed
Preserve CFLAGS/LDFLAGS for curl ssl check
We need to add the curl-specific flags, but we also need to preserve the general flags, to keep around important stuff like -m32.
1 parent 365a905 commit 2f1d822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/curl/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ if test "$PHP_CURL" != "no"; then
2626
AC_DEFINE([HAVE_CURL_SSL], [1], [Have cURL with SSL support])
2727

2828
save_CFLAGS="$CFLAGS"
29-
CFLAGS=$CURL_CFLAGS
29+
CFLAGS="$CFLAGS $CURL_CFLAGS"
3030
save_LDFLAGS="$LDFLAGS"
31-
LDFLAGS=$CURL_LIBS
31+
LDFLAGS="$LDFLAGS $CURL_LIBS"
3232

3333
AC_PROG_CPP
3434
AC_MSG_CHECKING([for openssl support in libcurl])

0 commit comments

Comments
 (0)