public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Static linking with libwinpthread
@ 2013-01-28  9:34 Алексей Павлов
  2013-02-02 18:50 ` Алексей Павлов
  0 siblings, 1 reply; 2+ messages in thread
From: Алексей Павлов @ 2013-01-28  9:34 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Static linking with libwinpthread
  2013-01-28  9:34 Static linking with libwinpthread Алексей Павлов
@ 2013-02-02 18:50 ` Алексей Павлов
  0 siblings, 0 replies; 2+ messages in thread
From: Алексей Павлов @ 2013-02-02 18:50 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-02 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-28  9:34 Static linking with libwinpthread Алексей Павлов
2013-02-02 18:50 ` Алексей Павлов

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).