aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-14 15:12:25 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-18 09:06:00 +0200
commit2c13f6bead81185d245dd48d0ec2546a76727bdd (patch)
tree9fa1fb3e26550b5089546fd0c7cbf0065d6f55c6 /Makefile
parent4f95db79456a7dbbf4f2a45abe48c83ba8638b1f (diff)
downloadpasst-2c13f6bead81185d245dd48d0ec2546a76727bdd.tar
passt-2c13f6bead81185d245dd48d0ec2546a76727bdd.tar.gz
passt-2c13f6bead81185d245dd48d0ec2546a76727bdd.tar.bz2
passt-2c13f6bead81185d245dd48d0ec2546a76727bdd.tar.lz
passt-2c13f6bead81185d245dd48d0ec2546a76727bdd.tar.xz
passt-2c13f6bead81185d245dd48d0ec2546a76727bdd.tar.zst
passt-2c13f6bead81185d245dd48d0ec2546a76727bdd.zip
Makefile: Don't create extraneous -.s file
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 <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 626bbf7..d2e25b4 100644
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ ifeq ($(shell printf "$(C)" | $(CC) -S -xc - -o - >/dev/null 2>&1; echo $$?),0)
CFLAGS += -DHAS_GETRANDOM
endif
-ifeq ($(shell :|$(CC) -fstack-protector-strong -S -xc - >/dev/null 2>&1; echo $$?),0)
+ifeq ($(shell :|$(CC) -fstack-protector-strong -S -xc - -o - >/dev/null 2>&1; echo $$?),0)
CFLAGS += -fstack-protector-strong
endif