From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13108 invoked by alias); 14 May 2013 19:24:09 -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 13078 invoked by uid 89); 14 May 2013 19:24:05 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 14 May 2013 19:24:05 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id r4EJNv2M021644; Tue, 14 May 2013 21:23:57 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id r4EJNvUE017192; Tue, 14 May 2013 21:23:57 +0200 (CEST) Date: Tue, 14 May 2013 19:24:00 -0000 Message-Id: <201305141923.r4EJNvUE017192@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: tromey@redhat.com CC: pavel.v.chupin@gmail.com, mark.kettenis@xs4all.nl, gdb-patches@sourceware.org In-reply-to: <87a9nx5qv9.fsf@fleche.redhat.com> (message from Tom Tromey on Tue, 14 May 2013 13:00:10 -0600) Subject: Re: [PATCH] gdb/configure: Replace hardcoded -ldl with check based on dlfcn.h availability References: <201305061230.r46CU0P4006086@glazunov.sibelius.xs4all.nl> <87a9nx5qv9.fsf@fleche.redhat.com> X-SW-Source: 2013-05/txt/msg00491.txt.bz2 > From: Tom Tromey > Date: Tue, 14 May 2013 13:00:10 -0600 > > 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. That's indeed what the autoconf manual suggests.