Attached is a patch to fix the building of examples/nettle-benchmark on
uclibc systems while not introducing a regression on glibc.
The downstream bug is https://bugs.gentoo.org/show_bug.cgi?id=415193
--
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
Fix building of nettle-benchmark on uclibc systems
nettle-benchmark makes a call to ldexp but the build system
doesn't add linking to libm. On a uclibc system, this causes
the build to fail.
This patch addresses the issue while not affecting glibc systems.
Signed-off-by: Anthony G. Basile <[email protected]>
diff -Naur a/examples/Makefile.in b/examples/Makefile.in
--- a/examples/Makefile.in 2012-07-07 13:27:55.000000000 +0000
+++ b/examples/Makefile.in 2012-07-07 18:19:58.825910243 +0000
@@ -94,7 +94,7 @@
BENCH_OBJS = nettle-benchmark.$(OBJEXT) nettle-openssl.$(OBJEXT) \
$(GETOPT_OBJS) ../nettle-internal.$(OBJEXT)
nettle-benchmark$(EXEEXT): $(BENCH_OBJS)
- $(LINK) $(BENCH_OBJS) -lnettle $(BENCH_LIBS) $(OPENSSL_LIBFLAGS) -o nettle-benchmark$(EXEEXT)
+ $(LINK) $(BENCH_OBJS) -lnettle -lm $(BENCH_LIBS) $(OPENSSL_LIBFLAGS) -o nettle-benchmark$(EXEEXT)
$(TARGETS) : io.$(OBJEXT) ../libnettle.a
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs