We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1daa45 commit 6723bbfCopy full SHA for 6723bbf
1 file changed
src/makefrag
@@ -80,11 +80,15 @@ endif
80
WITH_Z3 := $(shell (cd .. && $(FEATURETOOL) -q isenabled Z3GateSchedulingConfigurator && echo enabled) )
81
ifeq ($(WITH_Z3), enabled)
82
ifeq ($(HAVE_PKGCFG), yes)
83
- HAVE_Z3 := $(shell $(PKGCFG) --exists z3 && echo yes || echo no)
+ HAVE_Z3 := $(shell $(PKGCFG) --exists z3 && echo yes)
84
ifeq ($(HAVE_Z3), yes)
85
- LIBS += $(shell $(PKGCFG) --libs z3)
86
- CFLAGS += $(shell $(PKGCFG) --cflags z3) -DHAVE_Z3
+ Z3_LIBS := $(shell $(PKGCFG) --libs z3)
+ 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)
89
endif
90
+ LIBS += $(Z3_LIBS)
91
+ CFLAGS += $(Z3_CFLAGS) -DHAVE_Z3
92
93
94
0 commit comments