Skip to content

Commit

Permalink
Makefile includes to link to gmp also on Martin's mac
Browse files Browse the repository at this point in the history
  • Loading branch information
quickbeam123 committed Dec 19, 2024
1 parent a7afcb7 commit ab69e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ XFLAGS = -Wfatal-errors -g -DVDEBUG=1 -DCHECK_LEAKS=0 -DUSE_SYSTEM_ALLOCATION=1
#XFLAGS = -O6 -DVDEBUG=0 -DUSE_SYSTEM_ALLOCATION=1 -DEFENCE=1 -g -lefence #Electric Fence
#XFLAGS = -O6 -DVDEBUG=0 -DUSE_SYSTEM_ALLOCATION=1 -g

INCLUDES= -I.
INCLUDES= -I. -I/opt/local/include
Z3FLAG= -DVZ3=0
Z3LIB=
ifeq (,$(shell echo $(MAKECMDGOALS) | sed 's/.*z3.*//g'))
INCLUDES= -I. -Iz3/src/api -Iz3/src/api/c++
INCLUDES= -I. -I/opt/local/include -Iz3/src/api -Iz3/src/api/c++
# ifeq (,$(shell echo $(MAKECMDGOALS) | sed 's/.*static.*//g'))
# Z3LIB= -Lz3/build -lz3 -lgomp -pthread -Wl,--whole-archive -lrt -lpthread -Wl,--no-whole-archive -ldl
# else
Expand Down Expand Up @@ -541,7 +541,7 @@ VSAT_OBJ := $(addprefix $(CONF_ID)/, $(VSAT_DEP))
TKV_OBJ := $(addprefix $(CONF_ID)/, $(TKV_DEP))

define COMPILE_CMD
$(CXX) $(CXXFLAGS) $(filter -l%, $+) $(filter %.o, $^) -o $@_$(BRANCH)_$(COM_CNT) $(Z3LIB) -lgmp -lgmpxx
$(CXX) $(CXXFLAGS) $(filter -l%, $+) $(filter %.o, $^) -o $@_$(BRANCH)_$(COM_CNT) $(Z3LIB) -L/opt/local/lib -lgmp -lgmpxx
@#$(CXX) -static $(CXXFLAGS) $(Z3LIB) $(filter %.o, $^) -o $@
@#strip $@
endef
Expand Down

0 comments on commit ab69e49

Please sign in to comment.