Bug #76211 [NEW]: ext/curl does not pass --static flag for pkg-config
From: dktapps at pmmp dot io
Operating system: Linux
PHP version: 7.2.4
Package: cURL related
Bug Type: Bug
Bug description:ext/curl does not pass --static flag for pkg-config
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 bug report at https://bugs.php.net/bug.php?id=76211&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76211&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76211&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76211&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76211&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76211&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76211&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76211&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76211&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76211&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76211&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76211&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76211&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76211&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76211&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76211&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76211&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76211&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76211&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76211&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76211&r=mysqlcfg
Thread (5 messages)
- dktapps at pmmp dot io