Skip to content
Snippets Groups Projects
Commit c7d2b10b authored by Damien George's avatar Damien George
Browse files

Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_config

modffi: Fix how we call `pkg-config`
parents 0ae21a81 8e998ed2
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,10 @@ CFLAGS_MOD += -DMICROPY_MOD_TIME=1 ...@@ -45,8 +45,10 @@ CFLAGS_MOD += -DMICROPY_MOD_TIME=1
SRC_MOD += modtime.c SRC_MOD += modtime.c
endif endif
ifeq ($(MICROPY_MOD_FFI),1) ifeq ($(MICROPY_MOD_FFI),1)
CFLAGS_MOD += `pkg-config --cflags libffi` -DMICROPY_MOD_FFI=1 LIBFFI_LDFLAGS_MOD := $(shell pkg-config --libs libffi)
LDFLAGS_MOD += -ldl -lffi LIBFFI_CFLAGS_MOD := $(shell pkg-config --cflags libffi)
CFLAGS_MOD += $(LIBFFI_CFLAGS_MOD) -DMICROPY_MOD_FFI=1
LDFLAGS_MOD += -ldl $(LIBFFI_LDFLAGS_MOD)
SRC_MOD += modffi.c SRC_MOD += modffi.c
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment