We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fcaea6 commit a908202Copy full SHA for a908202
1 file changed
unix/Makefile
@@ -15,8 +15,7 @@ CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD)
15
LDFLAGS = $(LDFLAGS_MOD) -lm
16
17
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
+CFLAGS_MOD += `pkg-config --cflags libffi` -DMICROPY_MOD_FFI=1
20
LDFLAGS_MOD += -ldl -lffi
21
SRC_MOD += ffi.c
22
endif
0 commit comments