From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBfK2-00031S-K5 for qemu-devel@nongnu.org; Tue, 29 Nov 2016 05:07:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBfJy-0004bh-B0 for qemu-devel@nongnu.org; Tue, 29 Nov 2016 05:07:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55614) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBfJy-0004bb-5c for qemu-devel@nongnu.org; Tue, 29 Nov 2016 05:07:30 -0500 From: Stefan Hajnoczi Date: Tue, 29 Nov 2016 10:07:24 +0000 Message-Id: <20161129100724.15207-2-stefanha@redhat.com> In-Reply-To: <20161129100724.15207-1-stefanha@redhat.com> References: <20161129100724.15207-1-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 1/1] configure: fix LTTng UST tracing backend detection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Francis Deslauriers , Stefan Hajnoczi From: Francis Deslauriers The detection program needs to be linked with -ldl to build succesfully with recent versions of LTTng-UST. We also need to add -ldl to the libs required to build the LTTng-UST backend (lttng_ust_libs). Signed-off-by: Francis Deslauriers Message-id: 1480348337-24271-1-git-send-email-francis.deslauriers@efficios.com Signed-off-by: Stefan Hajnoczi --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5e66828..89df5c4 100755 --- a/configure +++ b/configure @@ -4305,11 +4305,11 @@ if have_backend "ust"; then #include int main(void) { return 0; } EOF - if compile_prog "" "" ; then + if compile_prog "" "-Wl,--no-as-needed -ldl" ; then if $pkg_config lttng-ust --exists; then lttng_ust_libs=$($pkg_config --libs lttng-ust) else - lttng_ust_libs="-llttng-ust" + lttng_ust_libs="-llttng-ust -ldl" fi if $pkg_config liburcu-bp --exists; then urcu_bp_libs=$($pkg_config --libs liburcu-bp) -- 2.9.3