From: Fabio Utzig Date: Thu, 8 Jan 2015 11:58:24 +0000 (-0200) Subject: Enable use of homebrew's provided bison if available X-Git-Tag: yosys-0.5~114^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a231f96d79d3eae927bf33571846c98f78eedfd;p=yosys.git Enable use of homebrew's provided bison if available --- diff --git a/Makefile b/Makefile index 0ac0b7efd..a3aa2a397 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,8 @@ ifeq (Darwin,$(findstring Darwin,$(shell uname))) # add homebrew's libffi include and library path CXXFLAGS += $(shell PKG_CONFIG_PATH=$$(brew list libffi | grep pkgconfig | xargs dirname) pkg-config --silence-errors --cflags libffi) LDFLAGS += $(shell PKG_CONFIG_PATH=$$(brew list libffi | grep pkgconfig | xargs dirname) pkg-config --silence-errors --libs libffi) + # use bison installed by homebrew if available + BISON = $(shell (brew list bison | grep -m1 "bin/bison") || echo bison) SED = gsed else LDFLAGS += -rdynamic