summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-21 01:22:27 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-21 01:22:27 +0100
commitc7d2b10b85fdc26f9342eb71192c49de28ec11cc (patch)
tree02f09c18e8cbf35d511289c6d52fbf60e946992c
parent0ae21a81f70806afc6f96fe099083bc8273ab34c (diff)
parent8e998ed2804251345c8655f8983ac1a12680cd3e (diff)
downloadmicropython-c7d2b10b85fdc26f9342eb71192c49de28ec11cc.tar.gz
micropython-c7d2b10b85fdc26f9342eb71192c49de28ec11cc.zip
Merge pull request #513 from errordeveloper/misc_fix/modffi_pkg_config
modffi: Fix how we call `pkg-config`
-rw-r--r--unix/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile
index ec02ad5004..304f09062d 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -45,8 +45,10 @@ CFLAGS_MOD += -DMICROPY_MOD_TIME=1
SRC_MOD += modtime.c
endif
ifeq ($(MICROPY_MOD_FFI),1)
-CFLAGS_MOD += `pkg-config --cflags libffi` -DMICROPY_MOD_FFI=1
-LDFLAGS_MOD += -ldl -lffi
+LIBFFI_LDFLAGS_MOD := $(shell pkg-config --libs libffi)
+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
endif