unix/Makefile: libffi: Build with -Os.

Also try to use -fno-exceptions. Other options taken from libffi's configure
defaults.
This commit is contained in:
Paul Sokolovsky 2016-06-18 00:17:47 +03:00
parent 10e5e10393
commit 9b43a7d1be

View File

@ -297,7 +297,7 @@ libffi:
cd ../lib/libffi; git clean -d -x -f cd ../lib/libffi; git clean -d -x -f
cd ../lib/libffi; ./autogen.sh cd ../lib/libffi; ./autogen.sh
mkdir -p ../lib/libffi/build_dir; cd ../lib/libffi/build_dir; \ 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 make install-exec-recursive; make -C include install-data-am
axtls: ../lib/axtls/README axtls: ../lib/axtls/README