mirror of https://github.com/YosysHQ/yosys.git
Add homebrew's libffi paths
This commit is contained in:
parent
0ca889a433
commit
b16ed78b43
3
Makefile
3
Makefile
|
@ -40,6 +40,9 @@ ifeq (Darwin,$(findstring Darwin,$(shell uname)))
|
||||||
# add macports/homebrew include and library path to search directories, don't use '-rdynamic' and '-lrt':
|
# add macports/homebrew include and library path to search directories, don't use '-rdynamic' and '-lrt':
|
||||||
CXXFLAGS += -I/opt/local/include -I/usr/local/opt/readline/include
|
CXXFLAGS += -I/opt/local/include -I/usr/local/opt/readline/include
|
||||||
LDFLAGS += -L/opt/local/lib -L/usr/local/opt/readline/lib
|
LDFLAGS += -L/opt/local/lib -L/usr/local/opt/readline/lib
|
||||||
|
# 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)
|
||||||
SED = gsed
|
SED = gsed
|
||||||
else
|
else
|
||||||
LDFLAGS += -rdynamic
|
LDFLAGS += -rdynamic
|
||||||
|
|
Loading…
Reference in New Issue