Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119593 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24940 invoked from network); 22 Feb 2023 12:45:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Feb 2023 12:45:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 257C71804F2 for ; Wed, 22 Feb 2023 04:45:30 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 138.201.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from swift.blarg.de (swift.blarg.de [138.201.185.127]) by php-smtp4.php.net (Postfix) with ESMTP for ; Wed, 22 Feb 2023 04:45:29 -0800 (PST) Received: from swift.blarg.de (swift.blarg.de [IPv6:2a01:4f8:c17:52a8::2]) (Authenticated sender: max) by swift.blarg.de (Postfix) with ESMTPSA id 03A4B41121 for ; Wed, 22 Feb 2023 13:45:28 +0100 (CET) Date: Wed, 22 Feb 2023 13:45:26 +0100 To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: LDFLAGS broken? From: max+php@blarg.de (Max Kellermann) Hi, while working on https://github.com/php/php-src/pull/10663 I saw CI failures because after that PR, the sanitizer flags were missing in the linker call; they were only present in CFLAGS and LDFLAGS but not in CXXFLAGS. That is because ".cirrus.yml" sets LDFLAGS, but that value never gets used because of the line "unset LIBS LDFLAGS" in configure.ac. 13 years ago, there was commit https://github.com/php/php-src/commit/477649cd3f09 which attempted to fix this, but was reverted on the same day by commit https://github.com/php/php-src/commit/16450418b188 with just commit message "Revert bad patch" but nothing else, no explanation what was bad about the patch. Yet the CI uses this variable, even though it's ignored. That went unnoticed for years, because the sanitizer flags are passed through CFLAGS to the linker. Who can explain this? Shall we revert the revert to repair this? (I despise bad commit messages like that. A revert always needs a proper explanation.) Max