From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29965 invoked by alias); 10 Apr 2005 23:32:57 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 29824 invoked from network); 10 Apr 2005 23:32:53 -0000 Received: from unknown (HELO rwcrmhc12.comcast.net) (216.148.227.85) by sourceware.org with SMTP; 10 Apr 2005 23:32:53 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (rwcrmhc12) with ESMTP id <2005041023324701400nibf6e>; Sun, 10 Apr 2005 23:32:52 +0000 Received: by lucon.org (Postfix, from userid 1000) id 42C1463D5D; Sun, 10 Apr 2005 16:32:47 -0700 (PDT) Date: Sun, 10 Apr 2005 23:32:00 -0000 From: "H. J. Lu" To: Marcin Dalecki Cc: binutils@sources.redhat.com Subject: Patch for Darwin Message-ID: <20050410233247.GA2224@lucon.org> References: <20050410174320.GA29704@lucon.org> <1156950288b3ac5c15e40e805766fe5e@dalecki.de> <20050410223022.GA1400@lucon.org> <0b413afb0df031337779edb8caa60308@dalecki.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b413afb0df031337779edb8caa60308@dalecki.de> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-04/txt/msg00219.txt.bz2 On Mon, Apr 11, 2005 at 01:25:54AM +0200, Marcin Dalecki wrote: > > I have to thank you. BTW the attached patch is fixing the compilation > inside > a cross build environment for Darwin. I am forwarding your patch to the binutils mailing list. > > Another question: Would you contemplate including patches for > configuration > of a uclibc based target? > > Please send them to the binutils mailing list. H.J. ---- diff -ur binutils-2.16.90.0.1/include/libiberty.h binutils-2.16.90.0.1-new/include/libiberty.h --- binutils-2.16.90.0.1/include/libiberty.h Sat Apr 9 21:03:16 2005 +++ binutils-2.16.90.0.1-new/include/libiberty.h Mon Apr 11 00:28:29 2005 @@ -74,7 +74,7 @@ to find the declaration so provide a fully prototyped one. If it is 1, we found it so don't provide any declaration at all. */ #if !HAVE_DECL_BASENAME -#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (HAVE_DECL_BASENAME) +#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (__APPLE__) || defined (HAVE_DECL_BASENAME) extern char *basename (const char *); #else extern char *basename ();