[oe] [meta-oe][PATCH 3/3] php: add libgcc to the runtime depends

Andre McCurdy armccurdy at gmail.com
Thu Nov 9 20:34:45 UTC 2017


On Mon, Oct 30, 2017 at 6:31 PM, Andre McCurdy <armccurdy at gmail.com> wrote:
> On Wed, Sep 20, 2017 at 8:11 AM, Derek Straka <derek at asterius.io> wrote:
>> Avoids issues with 'libgcc_s.so.1 must be installed for pthread_cancel to work'
>
> Does passing the "--enable-libgcc" php configure option fix that too?
> If so, maybe it's a better fix?

To answer my own question, configuring with --enable-libgcc doesn't work.

The php configure script detects the path to libgcc by running "gcc
--print-libgcc-file-name" which doesn't work when cross compiling (or
when building natively if ${CC} is set to something other than gcc).

>> Signed-off-by: Derek Straka <derek at asterius.io>
>> ---
>>  meta-oe/recipes-devtools/php/php.inc | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
>> index 0e55020..283d630 100644
>> --- a/meta-oe/recipes-devtools/php/php.inc
>> +++ b/meta-oe/recipes-devtools/php/php.inc
>> @@ -203,6 +203,7 @@ MODPHP_PACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp
>>
>>  PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}"
>>
>> +RDEPENDS_${PN} += "libgcc"
>>  RDEPENDS_${PN}-pear = "${PN}"
>>  RDEPENDS_${PN}-phar = "${PN}-cli"
>>  RDEPENDS_${PN}-cli = "${PN}"
>> --
>> 2.7.4



More information about the Openembedded-devel mailing list