Prevent CXXFLAGS from leaking to abc Makefile
authorMarcus Comstedt <marcus@mc.pp.se>
Tue, 27 Oct 2020 13:04:28 +0000 (14:04 +0100)
committerMarcus Comstedt <marcus@mc.pp.se>
Sat, 7 Nov 2020 15:02:49 +0000 (16:02 +0100)
This fixes an issue with abc/depends.sh when the compiler is clang.

Makefile

index 88a9f35f4200bf484d366e823796a45b6f2dedef..0fb3ef15090249dea3336c2233c5c188c06e4f55 100644 (file)
--- 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."