diff options
author | Marcus von Appen <marcus@sysfault.org> | 2014-06-07 09:16:42 +0200 |
---|---|---|
committer | Marcus von Appen <marcus@sysfault.org> | 2014-06-07 09:16:42 +0200 |
commit | 8ffc02495fefcd3eaf71d15276136e9a90aee912 (patch) | |
tree | a91ef3e7e4dc55eb7e8cfc2ea1564420fba4c383 /unix | |
parent | c61be8e1e10a8c7bac3161cae531d26a9d754825 (diff) | |
download | micropython-8ffc02495fefcd3eaf71d15276136e9a90aee912.tar.gz micropython-8ffc02495fefcd3eaf71d15276136e9a90aee912.zip |
- Let the build environment decide about the toolchain to be used, in case
there are special tweaks and paths to be considered. Just provide some
defaults, in case the values are undefined.
- py-version.sh does not need any bash specific features.
- Use libdl only on Linux for now. FreeBSD provides dl*() calls from libc.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile index ffc3391a14..485009135f 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -48,7 +48,10 @@ ifeq ($(MICROPY_PY_FFI),1) LIBFFI_LDFLAGS_MOD := $(shell pkg-config --libs libffi) LIBFFI_CFLAGS_MOD := $(shell pkg-config --cflags libffi) CFLAGS_MOD += $(LIBFFI_CFLAGS_MOD) -DMICROPY_PY_FFI=1 -LDFLAGS_MOD += -ldl $(LIBFFI_LDFLAGS_MOD) +ifeq ($(UNAME_S),Linux) +LDFLAGS_MOD += -ldl +endif +LDFLAGS_MOD += $(LIBFFI_LDFLAGS_MOD) SRC_MOD += modffi.c endif |