mirror of https://github.com/YosysHQ/yosys.git
Enable use of homebrew's provided bison if available
This commit is contained in:
parent
fff6f00b3c
commit
0a231f96d7
2
Makefile
2
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
|
||||
|
|
Loading…
Reference in New Issue