LCDproc development and user support list

Text archives Help


[Lcdproc] [Patch] Compile error with --as-needed


Chronological Thread 
  • From: peter AT adpm.de (Peter Marschall)
  • Subject: [Lcdproc] [Patch] Compile error with --as-needed
  • Date: Sat Nov 25 10:57:02 2006

Hi,

On Thursday, 23. November 2006 13:13, Robert Buchholz wrote:
> as noted in Gentoo Bug #155587 [1], lcdproc does not compile when the
> LDFLAG "--as-needed" is set.
> The reason is that the shared/libLCDstuff.a needs the ldap libraries,
> but with --as-needed, the order of the libraries is important:
>
> @ldap_libs@ ../../shared/libLCDstuff.a
>
> will not work, while
>
> ../../shared/libLCDstuff.a @ldap_libs@
>
> will work.
>
> As [2] puts it:
> "Basically, what the linker does is look for the symbols missing in a
> given file (either an object file, a static archive or a library) only
> in the files coming after it. When using the normal linking, without
> --as-needed, this is not a problem, although there might be some
> internal drawbacks on the linking stage, the files are linked together
> without considering ordering. But with the flag, the libraries that
> aren't used for resolving symbols are discarded and thus not linked."
>
> A patch against the 0.5.1 release is included.

Patch applied to CVS (both MAIN and 0.5 branches).

Thanks
Peter


--
Peter Marschall
peter AT adpm.de




Archive powered by MHonArc 2.6.18.

Top of page