Prevent CXXFLAGS from leaking to abc Makefile

This fixes an issue with abc/depends.sh when the compiler is clang.
This commit is contained in:
Marcus Comstedt 2020-10-27 14:04:28 +01:00
parent e2a39bb1e7
commit 5594594e16
1 changed files with 4 additions and 0 deletions

View File

@ -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."