Use appropriate static libraries when building with Verific on MacOS
authorArjen Roodselaar <arjen@fb.com>
Thu, 8 Nov 2018 07:18:47 +0000 (23:18 -0800)
committerArjen Roodselaar <arjen@fb.com>
Thu, 8 Nov 2018 07:18:47 +0000 (23:18 -0800)
Makefile

index fd708b7de268eb4319ec6daef0983318d89397d4..cb9880754ad40afa18b195f5049306a7309ccbc8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -359,8 +359,12 @@ ifeq ($(ENABLE_VERIFIC),1)
 VERIFIC_DIR ?= /usr/local/src/verific_lib_eval
 VERIFIC_COMPONENTS ?= verilog vhdl database util containers sdf hier_tree
 CXXFLAGS += $(patsubst %,-I$(VERIFIC_DIR)/%,$(VERIFIC_COMPONENTS)) -DYOSYS_ENABLE_VERIFIC
+ifeq ($(OS), Darwin)
+LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-mac.a,$(VERIFIC_COMPONENTS)) -lz
+else
 LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VERIFIC_COMPONENTS)) -lz
 endif
+endif
 
 ifeq ($(ENABLE_PROTOBUF),1)
 LDLIBS += $(shell pkg-config --cflags --libs protobuf)