File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,15 @@ endif
8080WITH_Z3 := $(shell (cd .. && $(FEATURETOOL) -q isenabled Z3GateSchedulingConfigurator && echo enabled) )
8181ifeq ($(WITH_Z3), enabled)
8282 ifeq ($(HAVE_PKGCFG), yes)
83- HAVE_Z3 := $(shell $(PKGCFG) --exists z3 && echo yes || echo no )
83+ HAVE_Z3 := $(shell $(PKGCFG) --exists z3 && echo yes)
8484 ifeq ($(HAVE_Z3), yes)
85- LIBS += $(shell $(PKGCFG) --libs z3)
86- CFLAGS += $(shell $(PKGCFG) --cflags z3) -DHAVE_Z3
85+ Z3_LIBS := $(shell $(PKGCFG) --libs z3)
86+ Z3_CFLAGS := $(shell $(PKGCFG) --clags z3)
87+ else
88+ Z3_LIBS := -lz3 # default in case pkg-config doesn't have z3 in its database (such as in NIX)
8789 endif
90+ LIBS += $(Z3_LIBS)
91+ CFLAGS += $(Z3_CFLAGS) -DHAVE_Z3
8892 endif
8993endif
9094
You can’t perform that action at this time.
0 commit comments