vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi. When emerging sth we can enable or disable USE flags by writing USE="usethis -andnotthis" emerge app can it be done with CXX flags? Of course I can write CXXFLAGS="very long cxxflags which I dont want to write every time" emerge but is there possibility to write something like CXXFLAGS="- -fno-rtti" emerge ? |
| |||
| * Marek Defeciński (2003-07-10 16:04 +0200) > When emerging sth we can enable or disable USE flags by writing > USE="usethis -andnotthis" emerge app > can it be done with CXX flags? > Of course I can write CXXFLAGS="very long cxxflags which I dont want to > write every time" emerge > but is there possibility to write something like CXXFLAGS="- -fno-rtti" > emerge > ? C/CXXFLAGS are not incremental as USE and other flags are, so there is no need for "disabling". Thorsten -- Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory) Content-Transfer-Warning: message contains innuendos not suited for children under the age of 18 |
| |||
| Marek Defeciński smie twierdzic jakoby: > When emerging sth we can enable or disable USE flags by writing > USE="usethis -andnotthis" emerge app > can it be done with CXX flags? > Of course I can write CXXFLAGS="very long cxxflags which I dont want to > write every time" emerge > but is there possibility to write something like CXXFLAGS="- -fno-rtti" > emerge > ? no. but there is a simple way to do this. first make `cat /etc/make.conf |grep FLAG`, then copy only those ones, which you need and export them as enviroment variable (`export CFLAGS='new flags...` and the same with CXXFLAGS). after emerging simply unset them (`unset CFLAGS; unset CXXFLAGS) to make settings from make.conf file enabled again. this trick works becouse emerge check first env. variables and after it, but only in case that no C*FLAGS are sets it check /etc/make.conf file pozdr. Aye -- "Life's a bitch and so am I, the world owes me, so fuck you." - Green Day PoLiSh YoUr EnGlIsH: SZKLO POSZLO - GLASGOW |
| |||
| * Aye <crytcheck@NOSPAM-normanet.pl> wrote on 11/Jul/2003 - 12:55:13 : > Marek Defeciński smie twierdzic jakoby: > >> When emerging sth we can enable or disable USE flags by writing >> USE="usethis -andnotthis" emerge app >> can it be done with CXX flags? >> Of course I can write CXXFLAGS="very long cxxflags which I dont want to >> write every time" emerge >> but is there possibility to write something like CXXFLAGS="- -fno-rtti" >> emerge >> ? > > no. but there is a simple way to do this. first make `cat > /etc/make.conf |grep FLAG`, then copy only those ones, which you need > and export them as enviroment variable (`export CFLAGS='new flags...` > and the same with CXXFLAGS). after emerging simply unset them (`unset > CFLAGS; unset CXXFLAGS) to make settings from make.conf file enabled again. > > this trick works becouse emerge check first env. variables and after it, > but only in case that no C*FLAGS are sets it check /etc/make.conf file > > pozdr. Aye Hi all, another trick is to look in the ebuild file - normally you find there CFLAGS and/or CXXFLAGS which can be edited ... otherwise you could try to add them following examples from other ebuild files ;-) Suxs Stefan |
| |||
| On Thu, 10 Jul 2003 16:04:35 +0200, Marek Defeciński wrote: > Hi. > > When emerging sth we can enable or disable USE flags by writing > USE="usethis -andnotthis" emerge app > can it be done with CXX flags? AFAIK and understood you right, YES. #man gcc e.g. -msse or -mnosse > Of course I can write CXXFLAGS="very long cxxflags which I dont want to > write every time" emerge > but is there possibility to write something like CXXFLAGS="- -fno-rtti" > emerge > ? Why should you that? you put it in make.conf e.g. I have '-fomit-frame-pointer' in CFLAGS and do not have it in CXXFLAGS. regards PiotrAF P. |
| ||||
| PiotrAF wrote: > On Thu, 10 Jul 2003 16:04:35 +0200, Marek Defeciński wrote: > >> ? > Why should you that? you put it in make.conf e.g. I have > '-fomit-frame-pointer' in CFLAGS and do not have it in CXXFLAGS. I have -fomint-frame-pointer -fno-rtti -fno-exceptions in make.conf everything compiled fine except for _one_ package. So when I emerged this package compiler refused to compile as no-rtti was set, hten I must vi /etc/make.conf find the line with no-rttti, delete it emerge one package, vi /etc/make.conf add the line with no-rttti, emerge the rest It would be nice to avoid editing everytime make.conf and be able to specify it in command line CXXFLAGS="disable flag" |