php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76211 ext/curl does not pass --static flag for pkg-config
Submitted: 2018-04-11 16:52 UTC Modified: -
From: dktapps at pmmp dot io Assigned:
Status: Open Package: cURL related
PHP Version: 7.2.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dktapps at pmmp dot io
New email:
PHP Version: OS:

 

 [2018-04-11 16:52 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 10:01:24 2019 UTC