Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c7d2b10b
Commit
c7d2b10b
authored
Apr 21, 2014
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
c7d2b10b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment