From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19149 invoked by alias); 14 May 2013 19:00:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19136 invoked by uid 89); 14 May 2013 19:00:31 -0000 X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 14 May 2013 19:00:31 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4EJ0Pta002566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 14 May 2013 15:00:26 -0400 Received: from barimba (ovpn-113-133.phx2.redhat.com [10.3.113.133]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r4EJ0BpX012880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 14 May 2013 15:00:23 -0400 From: Tom Tromey To: Pavel Chupin Cc: Mark Kettenis , gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/configure: Replace hardcoded -ldl with check based on dlfcn.h availability References: <201305061230.r46CU0P4006086@glazunov.sibelius.xs4all.nl> Date: Tue, 14 May 2013 19:00:00 -0000 In-Reply-To: (Pavel Chupin's message of "Tue, 7 May 2013 13:32:42 +0400") Message-ID: <87a9nx5qv9.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-05/txt/msg00483.txt.bz2 Mark> The fix isn't quite right. OpenBSD for example has but no Mark> libdl; dlopen(3) and friends live in libc. Pavel> Hi Mark, Pavel> Thanks for your comments. Please see new patch attached. Pavel> - LIBS="-ldl $LIBS" Pavel> + AC_CHECK_LIB(dl, dlopen) I think it is probably better to use AC_SEARCH_LIBS. Tom