got it to make with no problem - just expected to have a STATIC use flag for ease
example - strace has "-static" use flag, makes binary without needing libraries
(In reply to zlice from comment #0) > got it to make with no problem - just expected to have a STATIC use flag for > ease Could you provide a patch? I can't make it pass the configure phase if I pass the static option
used 0.7.2 and git latest (0.7.3 i think) to make ltrace static ./configure --enable-static=yes --enable-shared=no LDFLAGS="--static" make -j# not familiar with the gentoo ebuild/portage system. not sure if you mean a patch for that or if ltrace is giving you issues on your system.
Well it does not work for me. How is your glibc compiled? Could you give me the output of emerge -pv glibc ?
Created attachment 359258 [details] build.log
i don't have 'libelf' installed either. i do have elfutils installed emerge -pv glibc [ebuild R ] sys-libs/glibc-2.15-r3:2.2 USE="(multilib) -debug -gd (-hardened) -profile (-selinux) -vanilla" 0 kB just emerge synced and ACCEPT_KEYWORDS ~amd64 and successfully installed 0.7.3 elfutils = 0.149 automake = 1.13.4 autoconf = 2.69 libtool = 2.4-r1
Created attachment 359264 [details] ltrace-0.7.3.ebuild with LDFLAGS static in conf not sure how to add an 'if' condition for the static use flag - but the end LDFLAGS="--static" seems to work and compile static on my system.
oh also - --enabled-shared/static may want to be in that 'if' with USE=static
Your ebuild does not work for me either so it must be something else
Created attachment 359266 [details] emerge --info here's my emerge --info...if that helps any
It can be made to work but why do you need a static version of ltrace?
(In reply to Sergei Trofimovich from comment #11) > It can be made to work but why do you need a static version of ltrace? at the time it was for some android dev i think idk, im the only one, rare occasion thing. can close out, it's been years