diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-01 18:48:19 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-01 18:48:19 +0000 |
commit | a908202d60e15d37b47fb32b414658237119cd60 (patch) | |
tree | 8de68a24c591ddb8e9fc7377e0ad1784603cf871 | |
parent | 6fcaea6ca898ba7dd75ed62d5338852b270cc0de (diff) | |
download | micropython-a908202d60e15d37b47fb32b414658237119cd60.tar.gz micropython-a908202d60e15d37b47fb32b414658237119cd60.zip |
unix: libffi include path now found using pkg-config.
Hopefully this works for other people as well :)
-rw-r--r-- | unix/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile index 2d959bf73d..00e7e94602 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -15,8 +15,7 @@ CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) LDFLAGS = $(LDFLAGS_MOD) -lm ifeq ($(MICROPY_MOD_FFI),1) -# Note - include path below is specific to @dpgeorge -CFLAGS_MOD += -I/usr/lib/libffi-3.0.13/include -DMICROPY_MOD_FFI=1 +CFLAGS_MOD += `pkg-config --cflags libffi` -DMICROPY_MOD_FFI=1 LDFLAGS_MOD += -ldl -lffi SRC_MOD += ffi.c endif |