This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Possible bug with __attribute__((constructor)) and static libraries


Dnia wtorek, 29 sierpnia 2006 10:37, TongKe Xue napisaÅ:

>    If I make module.o into libmodule.a and then link libmodule.a, the
> function does not get called.

use -Wl,-whole-archive (man ld)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]