Skip to content

Commit a908202

Browse files
committed
unix: libffi include path now found using pkg-config.
Hopefully this works for other people as well :)
1 parent 6fcaea6 commit a908202

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

unix/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD)
1515
LDFLAGS = $(LDFLAGS_MOD) -lm
1616

1717
ifeq ($(MICROPY_MOD_FFI),1)
18-
# Note - include path below is specific to @dpgeorge
19-
CFLAGS_MOD += -I/usr/lib/libffi-3.0.13/include -DMICROPY_MOD_FFI=1
18+
CFLAGS_MOD += `pkg-config --cflags libffi` -DMICROPY_MOD_FFI=1
2019
LDFLAGS_MOD += -ldl -lffi
2120
SRC_MOD += ffi.c
2221
endif

0 commit comments

Comments
 (0)