View previous topic :: View next topic |
Author |
Message |
peter.oettl n00b
Joined: 02 Sep 2003 Posts: 22 Location: Nauders, Tirol, Austria
|
Posted: Sat Sep 02, 2006 7:27 am Post subject: what about a /etc/portage/package.cflags |
|
|
Hi,
I finished upgrade to GCC 4.1.1 right now and recompiling world worked well beside two packages.
For one I used too "insane" CFLAGS for the other I still have to find out.
I wonder what you think about a /etc/portage.cflags where I can set cflags on a per package base...
cheers,
pete.
--
"Not only do I not know the answer. I don't even know what the question is!" - James Hetfield |
|
Back to top |
|
|
blu3bird Retired Dev
Joined: 04 Oct 2003 Posts: 614 Location: Munich, Germany
|
Posted: Sat Sep 02, 2006 9:42 am Post subject: |
|
|
Create a file named /etc/portage/bashrc Code: | if [ -r /etc/portage/package.cflags ]; then
while read target flags; do
if [ "${target}" = "${CATEGORY}/${PN}" ]; then
export CFLAGS="$flags"
export CXXFLAGS="$CFLAGS"
break
fi
done < /etc/portage/package.cflags
fi |
Create a file named /etc/portage/package.cflags Code: | sys-libs/glibc -march=supercpu -O9 -funroll-really-all-loops -DPERFORMANCE --disable-instructions --fuck-upstream
sys-devel/gcc -march=i686 -Os |
You cflags/cxxflags defined in make.conf will be replaced for these packages.
But that does not support different cflags for different versions. _________________ Black Holes are created when God divides by zero! |
|
Back to top |
|
|
drwook Veteran
Joined: 30 Mar 2005 Posts: 1324 Location: London
|
Posted: Sat Sep 02, 2006 10:01 am Post subject: |
|
|
blu3bird wrote: |
But that does not support different cflags for different versions. |
ROFL!!! Sorry that just cracked me up.
If you want to fiddle with these things per package/version, why not just edit the ebuilds in an overlay? |
|
Back to top |
|
|
Dieter@be Guru
Joined: 03 Apr 2005 Posts: 314 Location: Wetteren, Belgium
|
Posted: Sat Sep 02, 2006 11:07 am Post subject: |
|
|
drwook wrote: | If you want to fiddle with these things per package/version, why not just edit the ebuilds in an overlay? |
cause that's very messy? _________________ Nothing beats a ride on the Gentoo learning curve.
2 Gentoo Linux boxes - 2 Arch Linux boxes - Love all four
Say no to i386 binaries! -- Adopt an unanswered topic |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|