unix: libffi include path now found using pkg-config.

Hopefully this works for other people as well :)
This commit is contained in:
Damien George 2014-02-01 18:48:19 +00:00
parent 6fcaea6ca8
commit a908202d60
1 changed files with 1 additions and 2 deletions

View File

@ -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