aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-11-13 01:37:50 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-11-16 15:10:32 +0100
commitb501a8f274682dfcfc3db671f5ce4c114ab02f05 (patch)
tree79818391e803c2fcc3fa90d65435fc6da07ae78e /Makefile
parentb3c9e76dab8656f7a365ba1c1ab2f326ed20a7b5 (diff)
downloadpasst-b501a8f274682dfcfc3db671f5ce4c114ab02f05.tar
passt-b501a8f274682dfcfc3db671f5ce4c114ab02f05.tar.gz
passt-b501a8f274682dfcfc3db671f5ce4c114ab02f05.tar.bz2
passt-b501a8f274682dfcfc3db671f5ce4c114ab02f05.tar.lz
passt-b501a8f274682dfcfc3db671f5ce4c114ab02f05.tar.xz
passt-b501a8f274682dfcfc3db671f5ce4c114ab02f05.tar.zst
passt-b501a8f274682dfcfc3db671f5ce4c114ab02f05.zip
Makefile: Don't filter out -O2 from supplied flags for AVX2 builds
Drop it from the internal FLAGS variable, but honour -O2 if passed in CFLAGS. In Debian packages, dpkg-buildflags uses it as hardening flag, and we get a QA warning if we drop it: https://qa.debian.org/bls/bytag/W-dpkg-buildflags-missing.html Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-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 a6e3164..f0b8e1d 100644
--- a/Makefile
+++ b/Makefile
@@ -125,7 +125,7 @@ passt: $(PASST_SRCS) $(HEADERS)
passt.avx2: FLAGS += -Ofast -mavx2 -ftree-vectorize -funroll-loops
passt.avx2: $(PASST_SRCS) $(HEADERS)
- $(CC) $(filter-out -O2,$(FLAGS) $(CFLAGS) $(CPPFLAGS)) \
+ $(CC) $(filter-out -O2,$(FLAGS)) $(CFLAGS) $(CPPFLAGS) \
$(PASST_SRCS) -o passt.avx2 $(LDFLAGS)
passt.avx2: passt