Bug #75941 [Opn]: Fix compile failure on Solaris with clang

From: Date: Tue, 28 Sep 2021 09:42:06 +0000
Subject: Bug #75941 [Opn]: Fix compile failure on Solaris with clang
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236884@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 Updated by: cmb@php.net 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: Please submit pull requests[1] instead of attaching patches for better visibility. [1] <https://github.com/php/php-src/pulls> Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#236884) next »