From: Travis Tilley <lv@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] per package cflags (was Re: Do we want optimal performance?)
Date: Wed, 08 Sep 2004 21:51:15 -0400 [thread overview]
Message-ID: <413FB713.3030404@gentoo.org> (raw)
In-Reply-To: <413FA8B7.8010108@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
Daniel Goller wrote:
> although i am against overly tweaking CFLAGS, someone suggested
> something that might be more sane to ask for:
>
> /etc/portage/packages.cflags
>
> an easy way to maintain your cflags you worked so hard for to obtain,
> you can trade them in the forums or ebay and then append to your file,
> not much work to implement in my eyes, and all the testing work is done
> by those who want it
mkdir /etc/portage and copy this file there (MUCH thanks to solar for
writing this. he like... kicks ass an stuff). it implements an
/etc/portage/package.cflags without needing to patch portage. i think
this might require portage 2.0.51_pre... no idea, i havent used 2.0.50
in a while.
Travis Tilley <lv@gentoo.org>
[-- Attachment #2: bashrc --]
[-- Type: text/plain, Size: 1435 bytes --]
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# /etc/portage/bashrc
if [ "$0" = "/usr/lib/portage/bin/ebuild.sh" ]; then
if [ "${DEBUG}" != "" ]; then
echo ----------------------------------------------------
echo \$_=$_
echo \$\*=$*
echo \$@=$@
echo \$0=$0
echo PORTDIR=$PORTDIR
echo CATEGORY=$CATEGORY
echo PN=$PN
echo PV=$PV
echo PR=$PR
echo PF=$PF
echo P=$P
echo USER=$USER
echo HOME=$HOME
echo PATH=${PATH}
echo LD_PRELOAD=${LD_PRELOAD}
echo ----------------------------------------------------
fi
eecho() {
[ "$NOCOLOR" = "false" ] && echo -ne '\e[1;34m>\e[1;36m>\e[1;35m>\e[0m ' || echo -n ">>> "
echo "$*"
}
case "$*" in
# stay really quiet here.
depend) : ;;
*)
if [ "$(/bin/basename /${LD_PRELOAD})" = "libsandbox.so" ]; then
eecho "$USER +sandbox($*) $PWD"
else
eecho "$USER -sandbox($*) $PWD"
fi
if [ -e ${ROOT}/etc/portage/package.cflags ]; then
save_IFS
IFS=$'\n'
for x in $(/bin/cat ${ROOT}/etc/portage/package.cflags); do
unset IFS
x="$(echo $x)"
IFS=$'\n'
if [ "${x:0:1}" != "#" ]; then
PKG="${x%%[$'\t\n ']*}"
if [ "$PKG" == "$CATEGORY/$PN" ]; then
export CFLAGS="${x/$PKG/}"
eecho "Using package.cflags entry for $PN - CFLAGS=\"${CFLAGS}\""
fi
fi
done
restore_IFS
fi
;;
esac
fi
[-- Attachment #3: Type: text/plain, Size: 37 bytes --]
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-09-09 1:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-08 10:15 [gentoo-dev] Do we want optimal performance? Klavs Klavsen
2004-09-08 11:29 ` Paul de Vrieze
2004-09-08 12:03 ` Corvus Corax
2004-09-08 13:16 ` Paul de Vrieze
2004-09-08 12:19 ` Alin Nastac
2004-09-08 13:24 ` Marcus D. Hanwell
2004-09-08 13:43 ` Patrick Lauer
2004-09-08 14:21 ` Klavs Klavsen
2004-09-09 7:52 ` Paul de Vrieze
2004-09-08 12:49 ` Spider
2004-09-08 17:16 ` Robert Moss
2004-09-08 18:20 ` Chris Gianelloni
2004-09-08 19:11 ` Klavs Klavsen
2004-09-08 19:54 ` Paul de Vrieze
2004-09-08 20:05 ` Marcus D. Hanwell
2004-09-08 19:41 ` Lisa Seelye
2004-09-09 0:49 ` Daniel Goller
2004-09-09 1:51 ` Travis Tilley [this message]
2004-09-09 2:26 ` [gentoo-dev] per package cflags (was Re: Do we want optimal performance?) Robin H. Johnson
2004-09-09 3:42 ` Ned Ludd
2004-09-09 3:49 ` Robin H. Johnson
2004-09-09 17:23 ` Robert Moss
2004-09-09 4:41 ` Will Buckner
2004-09-09 4:51 ` Ciaran McCreesh
2004-09-09 6:07 ` [gentoo-dev] Do we want optimal performance? Klavs Klavsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=413FB713.3030404@gentoo.org \
--to=lv@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox