From 8e2f16e66f507ffd7a61b41e3052527b91883182 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 11 Sep 2010 17:04:05 -0700 Subject: Link curl and the test apps with -lrt explicitly when necessary When curl calls a function from that library then it needs to explicitly link to the library instead of piggybacking on libcurl's own dependency. Without this, GNU ld with the --no-add-needed flag fails when linking (which Fedora now does by default). Reported by: Quanah Gibson-Mount Bug: http://curl.haxx.se/mail/lib-2010-09/0085.html --- tests/libtest/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libtest/Makefile.am') diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am index 2ba7b0a32..9c0d59507 100644 --- a/tests/libtest/Makefile.am +++ b/tests/libtest/Makefile.am @@ -54,7 +54,7 @@ EXTRA_DIST = test75.pl test307.pl test610.pl test613.pl test1013.pl \ test1022.pl Makefile.inc # Dependencies (may need to be overriden) -LDADD = $(top_builddir)/lib/libcurl.la +LDADD = $(top_builddir)/lib/libcurl.la @CURL_LIBS@ DEPENDENCIES = $(top_builddir)/lib/libcurl.la # Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES, -- cgit v1.2.3