From: Marcus Comstedt Date: Tue, 27 Oct 2020 13:04:28 +0000 (+0100) Subject: Prevent CXXFLAGS from leaking to abc Makefile X-Git-Tag: working-ls180~207^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5594594e1604ff2db34e9844be206c6ae17d3838;p=yosys.git Prevent CXXFLAGS from leaking to abc Makefile This fixes an issue with abc/depends.sh when the compiler is clang. --- diff --git a/Makefile b/Makefile index 88a9f35f4..0fb3ef150 100644 --- a/Makefile +++ b/Makefile @@ -661,6 +661,10 @@ ifeq ($(LINK_ABC),1) OBJS += $(PROGRAM_PREFIX)yosys-libabc.a endif +# prevent the CXXFLAGS set by this Makefile from reaching abc/Makefile, +# especially the -MD flag which will break the build when CXX is clang +unexport CXXFLAGS + top-all: $(TARGETS) $(EXTRA_TARGETS) @echo "" @echo " Build successful."