summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-01 18:48:19 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-01 18:48:19 +0000
commita908202d60e15d37b47fb32b414658237119cd60 (patch)
tree8de68a24c591ddb8e9fc7377e0ad1784603cf871
parent6fcaea6ca898ba7dd75ed62d5338852b270cc0de (diff)
downloadmicropython-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/Makefile3
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