com php-src: Preserve CFLAGS/LDFLAGS for curl ssl check: ext/curl/config.m4
| From: | Nikita Popov | Date: | Wed, 12 Jun 2019 09:54:13 +0000 |
| Subject: | com php-src: Preserve CFLAGS/LDFLAGS for curl ssl check: ext/curl/config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106701@lists.php.net to get a copy of this message | ||
Commit: 2f1d822d78ca8f34e67a06139ce36e6ff88fc158
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 12 Jun 2019 11:53:14 +0200
Parents: 365a905e00119cb499d8b10c0227f8c0d46213ab
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2f1d822d78ca8f34e67a06139ce36e6ff88fc158
Log:
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.
Changed paths:
M ext/curl/config.m4
Diff:
diff --git a/ext/curl/config.m4 b/ext/curl/config.m4
index cd02577..9c78eb6 100644
--- a/ext/curl/config.m4
+++ b/ext/curl/config.m4
@@ -26,9 +26,9 @@ if test "$PHP_CURL" != "no"; then
AC_DEFINE([HAVE_CURL_SSL], [1], [Have cURL with SSL support])
save_CFLAGS="$CFLAGS"
- CFLAGS=$CURL_CFLAGS
+ CFLAGS="$CFLAGS $CURL_CFLAGS"
save_LDFLAGS="$LDFLAGS"
- LDFLAGS=$CURL_LIBS
+ LDFLAGS="$LDFLAGS $CURL_LIBS"
AC_PROG_CPP
AC_MSG_CHECKING([for openssl support in libcurl])