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
a908202d
Commit
a908202d
authored
Feb 01, 2014
by
Damien George
Browse files
unix: libffi include path now found using pkg-config.
Hopefully this works for other people as well :)
parent
6fcaea6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
a908202d
...
...
@@ -15,8 +15,7 @@ CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD)
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
ifeq
($(MICROPY_MOD_FFI),1)
# Note - include path below is specific to @dpgeorge
CFLAGS_MOD
+=
-I
/usr/lib/libffi-3.0.13/include
-DMICROPY_MOD_FFI
=
1
CFLAGS_MOD
+=
`
pkg-config
--cflags
libffi
`
-DMICROPY_MOD_FFI
=
1
LDFLAGS_MOD
+=
-ldl
-lffi
SRC_MOD
+=
ffi.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