Patchwork [1/2] nettle: fix missing link to libm

login
register
mail settings
Submitter Gustavo Zacarias
Date Dec. 29, 2012, 11:52 a.m.
Message ID <1356781956-19977-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/208655/
State Accepted
Commit 7665bab422e79a252a4a45cfd696c34a19dabfdf
Headers show

Comments

Gustavo Zacarias - Dec. 29, 2012, 11:52 a.m.
nettle-benchmark uses ldexp without explicitly linking to libm, fixes:
http://autobuild.buildroot.net/results/c8e64fabcb98b1ff4bf737e2181b7cf2ae731550

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 ...le-Added-lm-when-linking-nettle-benchmark.patch |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 package/nettle/nettle-Added-lm-when-linking-nettle-benchmark.patch
Peter Korsgaard - Dec. 29, 2012, 1:25 p.m.
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> nettle-benchmark uses ldexp without explicitly linking to libm, fixes:
 Gustavo> http://autobuild.buildroot.net/results/c8e64fabcb98b1ff4bf737e2181b7cf2ae731550

Committed both, thanks.

Patch

diff --git a/package/nettle/nettle-Added-lm-when-linking-nettle-benchmark.patch b/package/nettle/nettle-Added-lm-when-linking-nettle-benchmark.patch
new file mode 100644
index 0000000..ca4d639
--- /dev/null
+++ b/package/nettle/nettle-Added-lm-when-linking-nettle-benchmark.patch
@@ -0,0 +1,17 @@ 
+Added -lm when linking nettle-benchmark.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff --git a/examples/Makefile.in b/examples/Makefile.in
+index 909fdda..3becd08 100644
+--- a/examples/Makefile.in
++++ b/examples/Makefile.in
+@@ -11,7 +11,7 @@ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
+ PRE_LDFLAGS = -L..
+ 
+ OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
+-BENCH_LIBS = @BENCH_LIBS@
++BENCH_LIBS = @BENCH_LIBS@ -lm
+ 
+ RSA_TARGETS = rsa-keygen$(EXEEXT) rsa-sign$(EXEEXT) \
+ 	      rsa-verify$(EXEEXT) rsa-encrypt$(EXEEXT) rsa-decrypt$(EXEEXT)