diff options
author | Ilya Dmitrichenko <ilya@xively.com> | 2014-04-20 09:30:46 +0100 |
---|---|---|
committer | Ilya Dmitrichenko <ilya@xively.com> | 2014-04-20 09:30:46 +0100 |
commit | 8e998ed2804251345c8655f8983ac1a12680cd3e (patch) | |
tree | dda20d6de8a8d39e898ba29af59e27d8c5808f2c | |
parent | 53775026e75d6a1c2611eb71ccfa118d1d82bddb (diff) | |
download | micropython-8e998ed2804251345c8655f8983ac1a12680cd3e.tar.gz micropython-8e998ed2804251345c8655f8983ac1a12680cd3e.zip |
modffi: Fix how we call `pkg-config`
-rw-r--r-- | unix/Makefile | 6 |
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 |