From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32288 invoked by alias); 5 Nov 2010 09:08:22 -0000 Received: (qmail 32279 invoked by uid 22791); 5 Nov 2010 09:08:21 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Nov 2010 09:08:15 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id oA597XG3014872; Fri, 5 Nov 2010 10:07:33 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id oA597VRG012579; Fri, 5 Nov 2010 10:07:31 +0100 (CET) Date: Fri, 05 Nov 2010 09:08:00 -0000 Message-Id: <201011050907.oA597VRG012579@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: brobecker@adacore.com, gdb-patches@sourceware.org In-reply-to: <20101105015148.GA24699@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Thu, 4 Nov 2010 15:51:49 -1000) Subject: Re: [patch] Fix --enable-plugins --without-python References: <20101017104101.GA9276@host1.dyn.jankratochvil.net> <20101102184341.GF2492@adacore.com> <20101105015148.GA24699@host0.dyn.jankratochvil.net> 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 X-SW-Source: 2010-11/txt/msg00102.txt.bz2 > Date: Thu, 4 Nov 2010 15:51:49 -1000 > From: Jan Kratochvil > > On Tue, 02 Nov 2010 08:43:41 -1000, Joel Brobecker wrote: > > Grumpf! It would be nice if BFD was telling us which libraries we need > > to link against bfd, just as Gtk+, Python, etc, do. > > I agree we should port the sourceware tree to pkg-config. :-) Oh dear god, no! > > I'm a little concern that this is a bit primitive, and good enough only > > on GNU/Linux or maybe Unix. Or rather, that this might break the build > > on some platforms such as Windows. But that's not the case, since > > the user would need to use --enable-plugins to enable plugins (it's > > not automatic), so I don't see a better solution that's actually > > worth the effort. > > bfd/Makefile.am also just adds `-ldl' (into *_LIBADD) so while I do not > understand what everything is emulated on these non-UNIX platforms I guess it > is either broken for --enable-plugins already even for bfd/ or it should work > even in gdb/ . Ugh, no, this is broken. On OpenBSD for example, there is no libdl, since dlopen(3) and friends are available in libc.