Yubico Forum https://forum.yubico.com/ |
|
compiling ykchalresp statically https://forum.yubico.com/viewtopic.php?f=16&t=858 |
Page 1 of 1 |
Author: | flow [ Mon Sep 03, 2012 1:03 pm ] |
Post subject: | compiling ykchalresp statically |
hello! i'm trying to compile ykchalresp statically for a custom initramfs, so no dependencies from the executable to libs. for some reason i do not succeed. ykchalresp always links to some libs: Code: ldd ykchalresp linux-vdso.so.1 (0x00007fff2b1e0000) libyubikey.so.0 => /usr/lib64/libyubikey.so.0 (0x00007fe71fa0e000) libusb-1.0.so.0 => /usr/lib64/libusb-1.0.so.0 (0x00007fe71f7fe000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe71f5e1000) libc.so.6 => /lib64/libc.so.6 (0x00007fe71f237000) librt.so.1 => /lib64/librt.so.1 (0x00007fe71f02e000) /lib64/ld-linux-x86-64.so.2 (0x00007fe71fc11000) what i did was, checkout the code from github, run autoscan, autoconf, autoreconf and: Code: ./configure --enable-static make can anyone point me in the right direction? i don't know what i'm missing. thx |
Author: | Klas [ Mon Sep 03, 2012 1:31 pm ] |
Post subject: | Re: compiling ykchalresp statically |
Hello, The --enable-static is telling libtool to build static binaries along the shared ones, doesn't have any effect on executables. It's a bit fiddly to get libtool to build the executables statically, this seems to work for me with libusb-0.1, libusb-1.0 breaks. $ ./configure && make LDFLAGS=-all-static /klas |
Author: | flow [ Mon Sep 03, 2012 2:40 pm ] |
Post subject: | Re: compiling ykchalresp statically |
how do you select libusb 0.1 to be used? -with-backend=libusb does not seem to work for me. also i tried editing the Makefile does not work either... thx |
Author: | Klas [ Tue Sep 04, 2012 7:03 am ] |
Post subject: | Re: compiling ykchalresp statically |
--with-backend=libusb to configure works for me. What output do you get from the configure checks? and what platform are you running on? /klas |
Author: | flow [ Tue Sep 04, 2012 8:42 am ] |
Post subject: | Re: compiling ykchalresp statically |
i'm running gentoo linux. it looks like i'm missing libusb 0.1 although i have the libusb-compat package installed. this does not seem to suffice. i already posted a forum question in the gentoo forums as well. thx |
Author: | flow [ Tue Sep 04, 2012 9:24 am ] |
Post subject: | Re: compiling ykchalresp statically |
i tried it on a ubuntu machine now. it worked. thx for your help! for the record: i had to install libusb-dev and libyubikey-dev on the ubuntu machine. that's all. then run: ./configure --with-backend=libusb make LDFLAGS=-all-static done |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |