On 05/21/2013 04:25 PM, Niels Möller wrote:

> [email protected] (Niels Möller) writes:
> 
>> I see. Does it work if you move the offending source files in arm/ to
>> the subdirectory arm/v6? In the build tree, you need either make
>> distclean, or remove corresponding symlinks manually.
> 
> I just pushed a branch "nettle-2.7-fixes" to the public repo, intended to
> also fix the pre-v6 ARM problems.


I tried to build this branch using mingw32 and I got linking issues with
libnettle.a and libhogweed.a (in that system I get libnettle.dll.a.

By fixing the makefiles to link with the LIBNETTLE_FILE and
LIBHOGWEED_FILE fixes the issue in mingw, but creates a problem on linux
where libnettle.so is built but LIBNETTLE_FILE is libnettle.so.4.7.

Any ideas?

regards,
Nikos
diff --git a/examples/Makefile.in b/examples/Makefile.in
index 563d0dc..98f1d75 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -117,8 +117,8 @@ hogweed-benchmark$(EXEEXT): $(HOGWEED_BENCH_OBJS)
        -lhogweed -lnettle $(BENCH_LIBS) $(LIBS) $(OPENSSL_LIBFLAGS) \
        -o hogweed-benchmark$(EXEEXT)
 
-$(TARGETS) : io.$(OBJEXT) ../libnettle.a
-$(HOGWEED_TARGETS): ../libhogweed.a
+$(TARGETS) : io.$(OBJEXT) ../$(LIBNETTLE_FILE)
+$(HOGWEED_TARGETS): ../$(LIBHOGWEED_FILE)
 
 check: $(TS_ALL)
        LD_LIBRARY_PATH=../.lib PATH="../.lib:$$PATH" srcdir="$(srcdir)" \
diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in
index 91f6e2a..f88b2dc 100644
--- a/testsuite/Makefile.in
+++ b/testsuite/Makefile.in
@@ -96,7 +96,7 @@ test-rules:
 include $(srcdir)/.test-rules.make
 
 $(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) ../nettle-internal.$(OBJEXT) \
-       ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
+       ../$(LIBNETTLE_FILE) @IF_HOGWEED@ ../$(LIBHOGWEED_FILE)
 
 # For use as, e.g.,
 #
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 29d55e8..932e904 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -34,19 +34,19 @@ SOURCES = $(sexp_conv_SOURCES) nettle-hash.c 
nettle-lfib-stream.c pkcs1-conv.c
 DISTFILES = $(SOURCES) Makefile.in input.h misc.h output.h parse.h
 
 sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
-sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.a
+sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../$(LIBNETTLE_FILE)
        $(LINK) $(sexp_conv_OBJS) -lnettle $(LIBS) -o $@
 
-nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle.a
+nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../$(LIBNETTLE_FILE)
        $(LINK) nettle-lfib-stream.$(OBJEXT) -lnettle $(LIBS) -o $@
 
 pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
-pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.a ../libhogweed.a
+pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../$(LIBNETTLE_FILE) 
../$(LIBHOGWEED_FILE)
        $(LINK) $(pkcs1_conv_OBJS) -lhogweed -lnettle $(LIBS) -o $@
 
 # FIXME: Avoid linking with gmp
 nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT)) $(getopt_OBJS)
-nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.a
+nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../$(LIBNETTLE_FILE)
        $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
 
 
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to