summaryrefslogtreecommitdiffstatshomepage
path: root/unix/Makefile
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-18 00:17:47 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-06-18 00:17:47 +0300
commit9b43a7d1be2cf79b85d36f7f51dd9edd8d39fdda (patch)
treede26f26acc88e7a5837b2ca16c53e2068d193eee /unix/Makefile
parent10e5e103937741c1bc42fc978b9fdfb8603f72e7 (diff)
downloadmicropython-9b43a7d1be2cf79b85d36f7f51dd9edd8d39fdda.tar.gz
micropython-9b43a7d1be2cf79b85d36f7f51dd9edd8d39fdda.zip
unix/Makefile: libffi: Build with -Os.
Also try to use -fno-exceptions. Other options taken from libffi's configure defaults.
Diffstat (limited to 'unix/Makefile')
-rw-r--r--unix/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 3df690b8c5..e209aa427d 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -297,7 +297,7 @@ libffi:
cd ../lib/libffi; git clean -d -x -f
cd ../lib/libffi; ./autogen.sh
mkdir -p ../lib/libffi/build_dir; cd ../lib/libffi/build_dir; \
- ../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out CC="$(CC)" CXX="$(CXX)" LD="$(LD)"; \
+ ../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out --disable-structs CC="$(CC)" CXX="$(CXX)" LD="$(LD)" CFLAGS="-Os -fomit-frame-pointer -fstrict-aliasing -ffast-math -fno-exceptions"; \
make install-exec-recursive; make -C include install-data-am
axtls: ../lib/axtls/README