Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build WMFS statically #60

Open
linkdd opened this issue Jun 20, 2012 · 0 comments
Open

Build WMFS statically #60

linkdd opened this issue Jun 20, 2012 · 0 comments
Labels

Comments

@linkdd
Copy link
Collaborator

linkdd commented Jun 20, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant