]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
build: change Nettle library link order to support static linking
authorDaiki Ueno <ueno@gnu.org>
Wed, 14 Aug 2024 00:12:58 +0000 (09:12 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 14 Aug 2024 00:12:58 +0000 (09:12 +0900)
As libhogweed uses libnettle functions such as nettle_cnd_memcpy,
libhogweed should come before libnettle in $(LIBADD), when linked
statically.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
lib/Makefile.am

index d24755aae1512adce8731e86236f14d61faa9d7a..d932b585d49eaf8a43e013c57269590a2280ae77 100644 (file)
@@ -290,7 +290,7 @@ thirdparty_libadd += $(LIBTASN1_LIBS)
 endif
 
 if ENABLE_NETTLE
-thirdparty_libadd += $(NETTLE_LIBS) $(HOGWEED_LIBS) $(GMP_LIBS)
+thirdparty_libadd += $(HOGWEED_LIBS) $(NETTLE_LIBS) $(GMP_LIBS)
 libgnutls_la_LIBADD += nettle/libcrypto.la
 endif