kmscon icon indicating copy to clipboard operation
kmscon copied to clipboard

Bulding kmscon as static binary fails

Open dragonnn opened this issue 12 years ago • 1 comments

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)

dragonnn avatar Feb 25 '13 08:02 dragonnn

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

dvdhrm avatar Feb 26 '13 17:02 dvdhrm