[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible GNU C Library Problem
From: |
Andreas Jaeger |
Subject: |
Re: Possible GNU C Library Problem |
Date: |
Fri, 28 Dec 2001 09:58:28 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
Mike Castle <address@hidden> writes:
> On Wed, Dec 26, 2001 at 09:35:17PM +0100, Andreas Jaeger wrote:
>> On Unix system you have to add all used libraries extra, inclusion of
>> a header file does not add a library.
>
> Random thought.
>
> Would it be appropriate to add such support?
>
> I know that some compilers (my personal experience is with the Borland
> product line), support #pragma that, through some magic, causes the linker
> to add the appropriate -lxxx.
>
> I assume some sort of special record is put into the object file that the
> linker recognizes. Would probably require a coordinated change between
> gcc/binutils/glibc to accomplish. An awful lot of work for a feature of
> dubious value. :->
That would be doable but it really needs to be coordinated. I'm not
sure whether it's wanted...
You miss one problem: The path to the library. You can have several
versions of libxxx installed in different paths and I do think the
user should give the default.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj