Skip to content
Snippets Groups Projects
Commit 8ea43ee9 authored by Edric Milaret's avatar Edric Milaret
Browse files

ios: optimize gmp and nettle

This greatly improve ringID generation from 2m30s-2m50s to 40s-50s
(tested on iPhone 5S)

Change-Id: I8a469d68a5a1869bd2daa800dd2d2d5eed949466
Tuleap: #313
parent 19acdd2e
Branches
Tags
No related merge requests found
......@@ -14,7 +14,7 @@ gmp: gmp-$(GMP_VERSION).tar.bz2 .sum-gmp
.gmp: gmp
ifdef HAVE_IOS
cd $< && $(HOSTVARS) ./configure --disable-assembly $(HOSTCONF)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure --disable-assembly $(HOSTCONF)
else
cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
endif
......
......@@ -22,6 +22,12 @@ nettle: nettle-$(NETTLE_VERSION).tar.gz .sum-nettle
DEPS_nettle = gmp $(DEPS_gmp)
.nettle: nettle
ifdef HAVE_IOS
cd $< && sed -i.orig s/-ggdb3//g configure.ac
cd $< && autoreconf
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF)
else
cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
endif
cd $< && $(MAKE) install
touch $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment