www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/24/10:15:20

Date: Mon, 24 Jul 2000 19:16:40 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
X-Sender: kalum AT roadrunner DOT grendel DOT net
To: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Porting software using Autoconf? Easing the pain...
In-Reply-To: <8lh6h7$9pm$1@nets3.rz.RWTH-Aachen.DE>
Message-ID: <Pine.LNX.4.21.0007241908150.3507-100000@roadrunner.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 24 Jul 2000, Hans-Bernhard Broeker spoke the following immortal words,

> Kalum Somaratna aka Grendel <kalum AT lintux DOT cx> wrote:
> 
> > Some functions like strdup are not available on some platforms.
> > So when GNU autoconf detects that it can set a particular #define, which
> > says that strdup is not on that system. Then you can supply your own
> > strdup function.
> 
> Yes. Most GNU packages do exactly that. The FSF actually maintains a
> special mini library for this very purpose: a collection of stand-ins
> or replacements for missing or unusable functions in the system
> libc. It's called 'libiberty', for the fun of linking it by the gcc
> option '-liberty'.
> 
> You'll find 'libiberty', or parts of it, in many GNU packages, as a
> subdirectory. If you program is going to be GPLed, I think you can use
> libiberty in it, and avoid implementing your own.

Thank's a lot Hans-Bernhard, for that tip, it will save a lot of my time.

Strangely enough I have not come across this library, or more likely I
have overlooked it (come to think of it I think I may have seen the
-liberty option when compiling some packages, but I am not sure), anyway
I'm sure a search at fsf.org would do the needful.

Best Wishes,
Grendel

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019