From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4886 invoked by alias); 29 Aug 2011 10:03:42 -0000 Received: (qmail 4875 invoked by uid 22791); 29 Aug 2011 10:03:41 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Aug 2011 10:03:26 +0000 Received: (qmail 1449 invoked from network); 29 Aug 2011 10:03:25 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Aug 2011 10:03:25 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PATCH 3/7] Platform agnostic dynamic loading code. Date: Mon, 29 Aug 2011 10:03:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; x86_64; ; ) Cc: Sanjoy Das References: <1314212467-7391-1-git-send-email-sanjoy@playingwithpointers.com> <1314212467-7391-4-git-send-email-sanjoy@playingwithpointers.com> In-Reply-To: <1314212467-7391-4-git-send-email-sanjoy@playingwithpointers.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201108291103.23021.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2011-08/txt/msg00557.txt.bz2 On Wednesday 24 August 2011 20:01:03, Sanjoy Das wrote: > + > +#ifdef HAVE_LIBDL > +#include > +#elif __MINGW32__ > +#include > +#else > +/* Unsupported configuration. See Eg. gdb_dlopen for details. */ > +#error API to load shared library missing (Eg. libdl) > +#endif This isn't correct. There are platforms where dlopen & friends are in the C library, and don't need or have -ldl/libdl. -- Pedro Alves