This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Static linking with libwinpthread
- From: Алексей Павлов <alexpux at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 2 Feb 2013 22:49:53 +0400
- Subject: Re: Static linking with libwinpthread
- References: <CABEPuQ+XurUX1du4JxxSddwbpge6XCniXJf7xAQug+-JNgx=vg@mail.gmail.com>
Ping?
2013/1/28 Алексей Павлов <alexpux@gmail.com>:
> Hi all!
> I try to build program with static linked toolchain libraries. I pass
>
> LDFLAGS="-Wl,-Bstatic -lwinpthread -Wl,-Bdynamic -static-libgcc
> -static-libstdc++"
>
> but program linked with shared libwinpthread-1.dll.
> What I doing wrong?
> Only way when I got static linked libwinpthreads is pass "-static" to
> LDFLAGS. But it break build programs with plugin system.
> I use mingw-w64 + GCC-4.7.2
>
> Cheers,
> Alex