Mail Archives: djgpp/2000/07/24/10:15:20
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 -