From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5F5E715800F for ; Tue, 10 Jan 2023 05:21:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86EABE07E1; Tue, 10 Jan 2023 05:21:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 62B1DE07E1 for ; Tue, 10 Jan 2023 05:21:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E685340E06 for ; Tue, 10 Jan 2023 05:21:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F3FE3523 for ; Tue, 10 Jan 2023 05:21:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1673328099.4fb8a9cb2a5410aa565d028bd8deb53d8682da62.sam@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: misc/fix-gnustack/tests/ X-VCS-Repository: proj/elfix X-VCS-Files: misc/fix-gnustack/tests/Makefile.am X-VCS-Directories: misc/fix-gnustack/tests/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4fb8a9cb2a5410aa565d028bd8deb53d8682da62 X-VCS-Branch: master Date: Tue, 10 Jan 2023 05:21:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1a2826a2-2f64-48fa-9aa6-9ce277085d5f X-Archives-Hash: 9c562436feceeb6b582e284f8ca752cd commit: 4fb8a9cb2a5410aa565d028bd8deb53d8682da62 Author: Sam James gentoo org> AuthorDate: Fri Jan 6 05:39:13 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jan 10 05:21:39 2023 +0000 URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=4fb8a9cb fix-gnustack: respect CFLAGS, LDFLAGS for tests Needed to correctly run tests with Clang, as Clang doesn't create executable stacks by default. Signed-off-by: Sam James gentoo.org> misc/fix-gnustack/tests/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/fix-gnustack/tests/Makefile.am b/misc/fix-gnustack/tests/Makefile.am index 9db0fd7..ad573a3 100644 --- a/misc/fix-gnustack/tests/Makefile.am +++ b/misc/fix-gnustack/tests/Makefile.am @@ -5,11 +5,11 @@ noinst_PROGRAMS = bad-gnustack EXTRA_DIST = gnustacktest.sh bad-gnustack.s: bad-gnustack.c - $(CC) -S $< + $(CC) $(CPPFLAGS) $(CFLAGS) -S $< $(SED) -i -e 's/GNU-stack,"",/GNU-stack,"x",/' $@ bad-gnustack$(EXEEXT): bad-gnustack.s - $(CC) -o $@ $< + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< check_SCRIPTS = gnustacktest TEST = $(check_SCRIPTS)