From 92a1b41df0783cd7d0a3b3598d557522b204a1cd Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Wed, 21 Jul 2021 21:01:06 -0400 Subject: [PATCH] autotools: fix static linking Closes #7475 --- src/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 734373187..37e3a1564 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,6 +66,9 @@ else curl_LDADD = $(top_builddir)/lib/libcurl.la @NSS_LIBS@ @SSL_LIBS@ @ZLIB_LIBS@ @CURL_NETWORK_AND_TIME_LIBS@ endif +curl_LDFLAGS = $(curl_LDFLAGS) +curl_CPPFLAGS = $(AM_CPPFLAGS) + # if unit tests are enabled, build a static library to link them with if BUILD_UNITTESTS noinst_LTLIBRARIES = libcurltool.la