[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: --as-needed and undefined non-weak symbols
- From: Ville Skyttä <ville skytta iki fi>
- To: Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Subject: Re: --as-needed and undefined non-weak symbols
- Date: Thu, 26 Oct 2006 18:16:37 +0300
On Thu, 2006-10-26 at 09:52 -0500, Rex Dieter wrote:
> Ville Skyttä wrote:
>
> > trying "gcc -lgtk foo.c" on the above fails as expected, and "gcc -lgdk
> > -lgtk foo.c" succeeds, again as expected. However, to my surprise, "gcc
> > -Wl,--as-needed -lgdk -lgtk foo.c" fails:
>
> Try
> gcc -Wl,--as-needed foo.c -lgtk -lgdk
> or even better:
> gcc -Wl,--as-needed foo.c `pkg-config --libs gtk+`
> instead.
Both succeed but neither links in libgdk, resulting in runtime symbol
lookup errors. But anyway, that doesn't answer my question, see the two
last paragraphs in my original message at
https://www.redhat.com/archives/fedora-devel-list/2006-October/msg00724.html
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]