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

Paweł Sikora pluto@agmk.net
Tue Aug 29 13:25:00 GMT 2006


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)



More information about the Gcc-bugs mailing list