diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2008-04-08 15:54:13 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2008-04-08 15:54:13 +0000 |
commit | 91dffc9bc1e2e294942dad4d9114f9077796937f (patch) | |
tree | d31bf3073e2dd50ff3336ffde14baf0416b1e119 /profiles/targets | |
parent | Moved ppc64 masks to default/linux/powerpc/ppc64/2008.0/64bit-userland (for n... (diff) | |
download | gentoo-2-91dffc9bc1e2e294942dad4d9114f9077796937f.tar.gz gentoo-2-91dffc9bc1e2e294942dad4d9114f9077796937f.tar.bz2 gentoo-2-91dffc9bc1e2e294942dad4d9114f9077796937f.zip |
Change the profile.bashrc on the developer profile to not touch CFLAGS.
Diffstat (limited to 'profiles/targets')
-rw-r--r-- | profiles/targets/developer/profile.bashrc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/profiles/targets/developer/profile.bashrc b/profiles/targets/developer/profile.bashrc index ba8b4d4358c4..2fc6a40b10ae 100644 --- a/profiles/targets/developer/profile.bashrc +++ b/profiles/targets/developer/profile.bashrc @@ -1,5 +1,18 @@ #!/bin/bash # We change around a few variables, since we've enabled splitdebug. -export CFLAGS="${CFLAGS} -g" -export CXXFLAGS="${CXXFLAGS} -g" +debug=0 +for flag in ${CFLAGS} +do + case ${flag} in + -g*) debug=1 ;; + esac +done + +if [ ${debug} -eq 0 ] +then + if [[ "${EBUILD_PHASE}" == "setup" ]] + then + echo "You should enable -g (or higher) for debugging!" + fi +fi |