Bug #76211 [Fbk->Asn]: ext/curl does not pass --static flag for pkg-config

From: Date: Wed, 22 Sep 2021 12:15:29 +0000
Subject: Bug #76211 [Fbk->Asn]: ext/curl does not pass --static flag for pkg-config
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236746@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76211&edit=1

 ID:                 76211
 User updated by:    dktapps at pmmp dot io
 Reported by:        dktapps at pmmp dot io
 Summary:            ext/curl does not pass --static flag for pkg-config
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            cURL related
 Operating System:   Linux
 PHP Version:        7.2.4
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

As I recall, it was fixed in this PR: https://github.com/php/php-src/pull/2749


Previous Comments:
------------------------------------------------------------------------
[2021-09-22 12:10:33] cmb@php.net

Is this still an issue with any of the actively supported PHP
versions[1]?  If so, consider to submit a pull request[2].

[1] <https://www.php.net/supported-versions.php>
[2] <https://github.com/php/php-src/pulls>

------------------------------------------------------------------------
[2018-04-11 16:52:08] dktapps at pmmp dot io

Description:
------------
libcurl has libs.private in its pkg-config configuration. When attempting to statically compile curl
+ mbedtls with PHP, the compile process fails because statically linked libraries are not included
in the configure. ext/curl does not include the necessary --static flag when calling pkg-config for
libcurl.

I'm trying to build curl with mbedtls support and pkg-config statically, and the build fails
because mbedtls is not linked against.

I have been working around this by forcing usage of curl-config, which works as expected.

Expected result:
----------------
PHP should be able to compile successfully with statically compiled and linked curl + mbedtls

Actual result:
--------------
compile failure.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76211&edit=1


Thread (5 messages)

« previous php.bugs (#236746) next »