From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: [PATCH 5/6] Makefile: Don't create extraneous -.s file Date: Tue, 14 Jun 2022 15:12:25 +1000 Message-ID: <20220614051226.195541-6-david@gibson.dropbear.id.au> In-Reply-To: <20220614051226.195541-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0772305640707377037==" --===============0772305640707377037== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable In order to probe availability of certain features the Makefile test compiles a handful of tiny snippets, feeding those in from stdin. However in one case - the one for -fstack-protector - it forgets to redirect the output to stdout, meaning it creates a stray '-.s' file when make is invoked (even make clean). Signed-off-by: David Gibson --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f918bb8..b0dde68 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ ifeq ($(shell printf "$(C)" | $(CC) -S -xc - -o - >/dev/nul= l 2>&1; echo $$?),0) CFLAGS +=3D -DHAS_GETRANDOM endif =20 -ifeq ($(shell :|$(CC) -fstack-protector-strong -S -xc - >/dev/null 2>&1; ech= o $$?),0) +ifeq ($(shell :|$(CC) -fstack-protector-strong -S -xc - -o - >/dev/null 2>&1= ; echo $$?),0) CFLAGS +=3D -fstack-protector-strong endif =20 --=20 2.36.1 --===============0772305640707377037==--