dvdhrm / kmscon

Linux KMS/DRM based virtual Console Emulator
http://www.freedesktop.org/wiki/Software/kmscon
Other
432 stars 79 forks source link

Bulding kmscon as static binary fails #72

Open dragonnn opened 11 years ago

dragonnn commented 11 years ago

My build options are:

CFLAGS="-Os -static" LDFLAGS="-static" ./configure --disable-wlterm --disable-silent-rules --disable-multi-seat --with-video=fbdev --with-renderers=bbulk --with-fonts=unifont --with-sessions=dummy,terminal

But the binary after finishing build still have dynamic linked libs:

Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libudev.so.1] 0x00000001 (NEEDED) Shared library: [libpciaccess.so.0] 0x00000001 (NEEDED) Shared library: [libpthread.so.0] 0x00000001 (NEEDED) Shared library: [libxkbcommon.so.0] 0x00000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.6]

Only the binary is much bigger ~15MB. Only the libgcc_s.so doesn't exist as static lib on my system, all other are have .a files (udev too, I have build systemd with enabled static libs)

dvdhrm commented 11 years ago

As I said in the email-conversation, I will postpone this until I split off the udev layer in libuterm. I hope I can do that in the next few weeks.

If anybody else succeeds in linking kmscon statically, please let us know. The thing is, there plenty of libs that aren't available as static libraries on my machine and linking kmscon static is currently not very high on my TODO list. So I think it will take same time, sorry. I will keep this bug open until then.

Cheers David