aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-22 11:53:27 -0700
committerGitHub <noreply@github.com>2019-08-22 11:53:27 -0700
commit2fe35f902b3d0b78cbfb133f6429262ef32bbe28 (patch)
tree23831345cff5d71aa634ea38b5ff33a7e81ec8e8
parent926cd10350669a4d955a4be456bcdaea3144da7c (diff)
parente5dac8096d92f526476f2d0b02def2298e6f5bbf (diff)
downloadyosys-2fe35f902b3d0b78cbfb133f6429262ef32bbe28.tar.gz
yosys-2fe35f902b3d0b78cbfb133f6429262ef32bbe28.tar.bz2
yosys-2fe35f902b3d0b78cbfb133f6429262ef32bbe28.zip
Merge pull request #1322 from mmicko/pyosys_osx
do not require boost if pyosys is not used
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 666223076..a742f2e50 100644
--- a/Makefile
+++ b/Makefile
@@ -91,8 +91,10 @@ PLUGIN_LDFLAGS += -undefined dynamic_lookup
ifneq ($(shell which brew),)
BREW_PREFIX := $(shell brew --prefix)/opt
$(info $$BREW_PREFIX is [${BREW_PREFIX}])
+ifeq ($(ENABLE_PYOSYS),1)
CXXFLAGS += -I$(BREW_PREFIX)/boost/include/boost
LDFLAGS += -L$(BREW_PREFIX)/boost/lib
+endif
CXXFLAGS += -I$(BREW_PREFIX)/readline/include
LDFLAGS += -L$(BREW_PREFIX)/readline/lib
PKG_CONFIG_PATH := $(BREW_PREFIX)/libffi/lib/pkgconfig:$(PKG_CONFIG_PATH)