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
80
80
WITH_Z3 := $(shell (cd .. && $(FEATURETOOL) -q isenabled Z3GateSchedulingConfigurator && echo enabled) )
81
81
ifeq ($(WITH_Z3), enabled)
82
82
ifeq ($(HAVE_PKGCFG), yes)
83
- HAVE_Z3 := $(shell $(PKGCFG) --exists z3 && echo yes || echo no )
83
+ HAVE_Z3 := $(shell $(PKGCFG) --exists z3 && echo yes)
84
84
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) --cflags z3)
87
+ else
88
+ Z3_LIBS := -lz3 # default in case pkg-config doesn't have z3 in its database (such as in NIX)
87
89
endif
90
+ LIBS += $(Z3_LIBS)
91
+ CFLAGS += $(Z3_CFLAGS) -DHAVE_Z3
88
92
endif
89
93
endif
90
94
You can’t perform that action at this time.
0 commit comments