Static linking with libwinpthread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux