xorg62 / wmfs

Window Manager From Scratch, Minimal manual tiling window manager.
http://wmfs.info
Other
189 stars 28 forks source link

Build WMFS statically #60

Open linkdd opened 12 years ago

linkdd commented 12 years ago

It could be nice to add an option "--enable-static" in the configure script.

To build WMFS statically, I added that line in the Makefile.in :

LDFLAGS+= -lxcb -lpthread -lm -ldl -lfreetype -lXext -lX11 -lXau -lXdmcp -lz -static

If you build with glibc, you will get this :

/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libX11.a(CrGlCur.o): In function `open_library':
(.text+0x2a): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
src/parse.o: In function `include':
parse.c:(.text+0xacb): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libX11.a(xim_trans.o): In function `_XimXTransSocketUNIXConnect':
(.text+0xa92): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

If you want a full static binary, you should build with uClibc