libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

static convenience library issue


From: Joe Orton
Subject: static convenience library issue
Date: Thu, 15 Jan 2004 21:36:53 +0000
User-agent: Mutt/1.4.1i

Static convenience libraries seem to behave slightly differently when
linked into programs from when into a library: when linked into a
library, they really do behave as an "an alias to a set of object files
and dependency libraries", as libtool passes -Wl,--whole-archive around
the .a file passed on the link line.

When linked into a program, a static convenience library does *not* act 
as an alias for a set of object files, as --whole-archive is not used.  
So any object files in the library which do not have symbols referenced 
by other objects linked into the program get dropped on the floor.

Am I understanding this correctly?  Is there any way to achieve the
latter behaviour with libtool: to build a library which really just acts
as an alias for a set of .o files when linked into a program?

Regards,

joe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]