Bug #75941 [Com]: Fix compile failure on Solaris with clang
| From: | jdolecek at NetBSD dot org | Date: | Tue, 28 Sep 2021 19:49:41 +0000 |
| Subject: | Bug #75941 [Com]: Fix compile failure on Solaris with clang | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236904@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75941&edit=1
ID: 75941
Comment by: jdolecek at NetBSD dot org
Reported by: jdolecek at NetBSD dot org
Summary: Fix compile failure on Solaris with clang
Status: Open
Type: Bug
Package: Compile Failure
Operating System: SunOS, Solaris, pkgsrc
PHP Version: 7.2.2
Block user comment: N
Private report: N
New Comment:
Created new PR for this:
https://github.com/php/php-src/pull/7525
Previous Comments:
------------------------------------------------------------------------
[2021-09-28 09:42:06] cmb@php.net
Please submit pull requests[1] instead of attaching patches for
better visibility.
[1] <https://github.com/php/php-src/pulls>
------------------------------------------------------------------------
[2018-02-08 23:58:53] jdolecek at NetBSD dot org
Description:
------------
NetBSD package system pkgsrc maintains several patches, which we'd like to feed upstream. This
is one of them.
The configure script assumes that libgcc needs to be linked if GCC=yes. However, that is set also
when the compilation is done using clang.
When the compilation is done using gcc, the compiler itself automatically adds the lib as needed.
There is no need to do this explicitly with any recent gcc, unless -nostdlib is used which php
doesn't.
That code was added in rev. 2fcd5025228 in 2002-07-23.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75941&edit=1