Strip more LTO flags.

This commit is contained in:
Joe Orton 2020-08-27 09:29:05 +01:00
parent c322ab13fe
commit c646e6733d

View File

@ -4,7 +4,7 @@
@NAMEVER@.tar.gz: $(DISTFILES)
tar -c --transform="s#^#@NAMEVER@/#" -vzf $@ $(DISTFILES)
+APXS_CFLAGS := $(shell @APXS2@ -q CFLAGS | sed 's/-flto //') $(CFLAGS)
+APXS_CFLAGS := $(shell @APXS2@ -q CFLAGS | sed 's/-f[^ ]*lto[^ ]* //g') $(CFLAGS)
+APXS_CC := $(shell @APXS2@ -q CC) $(APXS_CFLAGS) $(shell @APXS2@ -q EXTRA_INCLUDES)
+
test/test test/test-cmd: test/test.c test/test-cmd.c test/stub.c src/mod_auth_openidc.la