Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Makefile: link libmd after openssl crypto libs
Mark Johnston committed 1 year ago
commit ae637a3ade7510d8c917acd15079f8905855de5e
parent fed9f1464e031130249e0b815657356883af89d1
1 file changed +5 -4
modified src/Makefile.autosetup
@@ -69,10 +69,6 @@ OTHER_LIBS+= -lfts
OTHER_LIBS+=	-ldl
@endif

-
@if HAVE_LIBMD
-
OTHER_LIBS+=	-lmd
-
@endif
-

@if PKG_OPENSSL_LIBS
LOCAL_CFLAGS+=	@PKG_OPENSSL_CFLAGS@
OTHER_LIBS+=	@PKG_OPENSSL_LDFLAGS@ @PKG_OPENSSL_LIBS@
@@ -80,6 +76,11 @@ OTHER_LIBS+= @PKG_OPENSSL_LDFLAGS@ @PKG_OPENSSL_LIBS@
OTHER_LIBS+=	-lssl -lcrypto
@endif

+
# libmd must be linked after libssl/libcrypto.
+
@if HAVE_LIBMD
+
OTHER_LIBS+=	-lmd
+
@endif
+

@if PKG_LIBCURL_LIBS
LOCAL_CFLAGS+=	@PKG_LIBCURL_CFLAGS@
OTHER_LIBS+=	@PKG_LIBCURL_LDFLAGS@ @PKG_LIBCURL_LIBS@