Re: `pkg-config --static --libs x11` unusable for static linking?

2017-03-15 Thread xorg
On Wed, Mar 15, 2017 at 02:01:06PM +0100, walter harms wrote: > you are aware the glibc does not support static linking ? > > re, > wh The glibc caveats surrounding static linking are completely orthogonal to what is happening here. The library order in the link phase matters and `pkg-config

Re: `pkg-config --static --libs x11` unusable for static linking?

2017-03-15 Thread walter harms
you are aware the glibc does not support static linking ? re, wh Am 15.03.2017 02:16, schrieb x...@pengaru.com: > Hello list, > > I'm trying to support clean-ish static linking of a small autotools and > libx11-using monitoring program via: > > PKG_CONFIG="pkg-config --static"

`pkg-config --static --libs x11` unusable for static linking?

2017-03-14 Thread xorg
Hello list, I'm trying to support clean-ish static linking of a small autotools and libx11-using monitoring program via: PKG_CONFIG="pkg-config --static" LDFLAGS="-static" ./configure But linking fails on libdl and libpthread symbols: $ gcc -g -O2 -static -o vwm vwm-clickety.o