On Mon, Oct 30, 2017 at 6:31 PM, Andre McCurdy <armccu...@gmail.com> wrote:
> On Wed, Sep 20, 2017 at 8:11 AM, Derek Straka <de...@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 <de...@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
-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to