* [gentoo-user] per-ebuild compil options
@ 2007-10-02 4:34 Iain Buchanan
2007-10-02 8:56 ` Neil Bothwick
0 siblings, 1 reply; 6+ messages in thread
From: Iain Buchanan @ 2007-10-02 4:34 UTC (permalink / raw
To: gentoo-user
Hi all,
after recompiling another bunch of libraries just to "unstrip" them, I'm
wondering if I can specify FEATURES and CXXOPTS (for example) on a
per-ebuild basis.
eg. I would always want to build glib and glibc with nostrip in the
FEATURES, and -ggdb in the compile options, but all other ebuilds would
be as normal.
Any way I can do this without putting the ebuilds in my overlay? I know
I can do it on the command line:
FEATURES="blah nostrip" CFLAGS="blah -ggdb" CXXFLAGS="${CFLAGS}" sudo
emerge -va1 glibc
but that kind-of gets defeated during an emerge world.
thanks,
--
Iain Buchanan <iain at pcorp dot com dot au>
Humor in the Court:
Q: ...any suggestions as to what prevented this from being a murder trial
instead of an attempted murder trial?
A: The victim lived.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] per-ebuild compil options
2007-10-02 4:34 [gentoo-user] per-ebuild compil options Iain Buchanan
@ 2007-10-02 8:56 ` Neil Bothwick
2007-10-03 0:38 ` Iain Buchanan
0 siblings, 1 reply; 6+ messages in thread
From: Neil Bothwick @ 2007-10-02 8:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 647 bytes --]
On Tue, 02 Oct 2007 14:04:10 +0930, Iain Buchanan wrote:
> after recompiling another bunch of libraries just to "unstrip" them, I'm
> wondering if I can specify FEATURES and CXXOPTS (for example) on a
> per-ebuild basis.
>
> eg. I would always want to build glib and glibc with nostrip in the
> FEATURES, and -ggdb in the compile options, but all other ebuilds would
> be as normal.
mkdir -p /etc/portage/env.d/sys-devel
echo 'FEATURES="blah nostrip"' >/etc/portage/env.d/sys-devel/gcc
echo 'CFLAGS="blah -ggdb"' >>etc/portage/env.d/sys-devel/gcc
etc.
--
Neil Bothwick
--T-A+G-L-I+N-E--+M-E-A+S-U-R+I-N-G+--G-A+U-G-E--
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] per-ebuild compil options
2007-10-02 8:56 ` Neil Bothwick
@ 2007-10-03 0:38 ` Iain Buchanan
2007-10-03 18:09 ` Bo Ørsted Andresen
0 siblings, 1 reply; 6+ messages in thread
From: Iain Buchanan @ 2007-10-03 0:38 UTC (permalink / raw
To: gentoo-user
On Tue, 2007-10-02 at 09:56 +0100, Neil Bothwick wrote:
> On Tue, 02 Oct 2007 14:04:10 +0930, Iain Buchanan wrote:
[snip]
> > eg. I would always want to build glib and glibc with nostrip in the
> > FEATURES, and -ggdb in the compile options, but all other ebuilds would
> > be as normal.
>
> mkdir -p /etc/portage/env.d/sys-devel
> echo 'FEATURES="blah nostrip"' >/etc/portage/env.d/sys-devel/gcc
> echo 'CFLAGS="blah -ggdb"' >>etc/portage/env.d/sys-devel/gcc
> etc.
hey that looks cool... except that it didn't work! I should be doing
this to dev-libs/glib and sys-libs/glibc right?
$ cat /etc/portage/env.d/dev-libs/glib
FEATURES="${FEATURES} nostrip"
CFLAGS="${CFLAGS} -ggdb"
$ sudo emerge -va1 glib
...
$ file /usr/lib/libglib-2.0.so.0.1400.1
/usr/lib/libglib-2.0.so.0.1400.1: ELF 32-bit LSB shared object, Intel
80386, version 1 (SYSV), stripped
it now says stripped, whereas last time when I specified FEATURES on the
command line before emerge, it came out as not stripped...
I also tried this:
$ cat /etc/portage/env.d/dev-libs/glib
FEATURES="fixpackages userpriv usersandbox userfetch nostrip"
CFLAGS="-O2 -march=pentium4 -pipe -ggdb"
CXXFLAGS="-O2 -march=pentium4 -pipe -ggdb"
and they still end up stripped...
any ideas why? thanks!
--
Iain Buchanan <iaindb at netspace dot net dot au>
There's no such thing as a free lunch.
-- Milton Friendman
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-03 23:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 4:34 [gentoo-user] per-ebuild compil options Iain Buchanan
2007-10-02 8:56 ` Neil Bothwick
2007-10-03 0:38 ` Iain Buchanan
2007-10-03 18:09 ` Bo Ørsted Andresen
2007-10-03 21:33 ` Neil Bothwick
2007-10-03 23:15 ` Iain Buchanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox