This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Possible bug with __attribute__((constructor)) and static libraries
- From: PaweÅ Sikora <pluto at agmk dot net>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2006 15:25:39 +0200
- Subject: Re: Possible bug with __attribute__((constructor)) and static libraries
- References: <Pine.LNX.4.62.0608290134240.30318@robo.Stanford.EDU>
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)