Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485194 - dev-util/ltrace - add USE=static
Summary: dev-util/ltrace - add USE=static
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-17 14:02 UTC by zlice
Modified: 2016-02-22 19:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,28.70 KB, text/plain)
2013-09-22 18:21 UTC, Markos Chandras (RETIRED)
Details
ltrace-0.7.3.ebuild with LDFLAGS static in conf (ltrace-0.7.3.ebuild,1.05 KB, text/plain)
2013-09-22 20:03 UTC, zlice
Details
emerge --info (emerge.info,4.83 KB, application/x-info)
2013-09-22 20:49 UTC, zlice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zlice 2013-09-17 14:02:13 UTC
got it to make with no problem - just expected to have a STATIC use flag for ease
Comment 1 zlice 2013-09-17 14:50:16 UTC
example - strace has "-static" use flag, makes binary without needing libraries
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2013-09-22 16:01:39 UTC
(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
Comment 3 zlice 2013-09-22 18:03:56 UTC
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.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2013-09-22 18:15:32 UTC
Well it does not work for me. How is your glibc compiled?

Could you give me the output of emerge -pv glibc ?
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2013-09-22 18:21:34 UTC
Created attachment 359258 [details]
build.log
Comment 6 zlice 2013-09-22 18:52:10 UTC
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
Comment 7 zlice 2013-09-22 20:03:33 UTC
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.
Comment 8 zlice 2013-09-22 20:05:00 UTC
oh also - --enabled-shared/static may want to be in that 'if' with USE=static
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2013-09-22 20:10:51 UTC
Your ebuild does not work for me either so it must be something else
Comment 10 zlice 2013-09-22 20:49:28 UTC
Created attachment 359266 [details]
emerge --info

here's my emerge --info...if that helps any
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2016-02-20 11:37:33 UTC
It can be made to work but why do you need a static version of ltrace?
Comment 12 zlice 2016-02-22 18:24:54 UTC
(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