Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-user] portage and package specific CFLAGS

 
   Soft32 Home -> Linux -> User RSS
Next:  [gentoo-user] used computer  
Author Message
Antonio Coralles

External


Since: Nov 28, 2004
Posts: 59



(Msg. 1) Posted: Wed Mar 30, 2005 5:50 pm
Post subject: [gentoo-user] portage and package specific CFLAGS
Archived from groups: linux>gentoo>user (more info?)

How can I tell portage to use specific CFLAGS for a particular package
without temporary changing my /etc/make.conf ?

--
gentoo-user RemoveThis @gentoo.org mailing list
Back to top
Login to vote
Ivan Yosifov

External


Since: Dec 07, 2004
Posts: 65



(Msg. 2) Posted: Wed Mar 30, 2005 6:10 pm
Post subject: Re: [gentoo-user] portage and package specific CFLAGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Search the forums and bugzilla. This a RFE, and there are at least a few
scripts and patches to do this. Currently, stock portage does not do
this.

On Wed, 2005-03-30 at 23:14 +0200, Antonio Coralles wrote:
> How can I tell portage to use specific CFLAGS for a particular package
> without temporary changing my /etc/make.conf ?
>
> --
> gentoo-user RemoveThis @gentoo.org mailing list
>
>
--
Ivan Yosifov.

--
gentoo-user RemoveThis @gentoo.org mailing list
Back to top
Login to vote
Nick Rout

External


Since: Apr 07, 2004
Posts: 1095



(Msg. 3) Posted: Wed Mar 30, 2005 8:50 pm
Post subject: Re: [gentoo-user] portage and package specific CFLAGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I thought perhaps

CFLAGS="whatever" CXXFLAGS="${CFLAGS}" emerge foo

no doubt some dev guru will tell me I am way out of line Smile


On Wed, 30 Mar 2005 23:14:48 +0200
Antonio Coralles wrote:

> How can I tell portage to use specific CFLAGS for a particular package
> without temporary changing my /etc/make.conf ?
>
> --
> gentoo-user RemoveThis @gentoo.org mailing list

--
Nick Rout

--
gentoo-user RemoveThis @gentoo.org mailing list
Back to top
Login to vote
Aaron Walker

External


Since: Sep 12, 2004
Posts: 176



(Msg. 4) Posted: Thu Mar 31, 2005 9:20 am
Post subject: Re: [gentoo-user] portage and package specific CFLAGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nick Rout wrote:
> I thought perhaps
>
> CFLAGS="whatever" CXXFLAGS="${CFLAGS}" emerge foo
>
> no doubt some dev guru will tell me I am way out of line Smile

wrong! there's nothing wrong with doing that. If it was something like
ACCEPT_KEYWORDS you were setting, that'd be different Smile

One thing to note though, is that your reasoning is flawed when setting
CXXFLAGS to $CFLAGS. CFLAGS wont be equal to "whatever" until after you hit
enter, so unless CFLAGS is already set in your env, CXXFLAGS will be null. If
it is set in your env, CXXFLAGS will be whatever CFLAGS is in your env, not
"whatever".

Cheers
- --
Zeere's nu secret tu belunce-a. Yuoo joost hefe-a tu feel zee vefes.
Bork Bork Bork!

-- Dervee Oodrede-a

Aaron Walker <ka0ttic.RemoveThis@gentoo.org>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCS6rXC3poscuANHARAi/fAKDQYuVLTZfkHkw9hoJ6i8yN9Ehw0gCg3ZKi
NKdItSYu+G4qM3T7DhZqnQM=
=BsQB
-----END PGP SIGNATURE-----

--
gentoo-user.RemoveThis@gentoo.org mailing list
Back to top
Login to vote
Antonio Coralles

External


Since: Nov 28, 2004
Posts: 59



(Msg. 5) Posted: Thu Mar 31, 2005 11:50 am
Post subject: Re: [gentoo-user] portage and package specific CFLAGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

gentoo-user.TakeThisOut@gentoo.org wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nick Rout wrote:
>> I thought perhaps
>>
>> CFLAGS="whatever" CXXFLAGS="${CFLAGS}" emerge foo
>>
>> no doubt some dev guru will tell me I am way out of line Smile
>
> wrong! there's nothing wrong with doing that. If it was something like
> ACCEPT_KEYWORDS you were setting, that'd be different Smile
>
> One thing to note though, is that your reasoning is flawed when setting
> CXXFLAGS to $CFLAGS. CFLAGS wont be equal to "whatever" until after
> you hit
> enter, so unless CFLAGS is already set in your env, CXXFLAGS will be
> null. If
> it is set in your env, CXXFLAGS will be whatever CFLAGS is in your
> env, not
> "whatever".
>
So, the correct way would be (??):
#CFLAGS="whatever"
#CXXFLAGS=CFLAGS
#emerge something

> Cheers
> - --
> Zeere's nu secret tu belunce-a. Yuoo joost hefe-a tu feel zee vefes.
> Bork Bork Bork!
>
> -- Dervee Oodrede-a
>
antonio
--
gentoo-user.TakeThisOut@gentoo.org mailing list
Back to top
Login to vote
Christoph Gysin

External


Since: Jul 06, 2004
Posts: 210



(Msg. 6) Posted: Thu Mar 31, 2005 3:00 pm
Post subject: Re: [gentoo-user] portage and package specific CFLAGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Juergen Fiedler wrote:
> If you really feel the need to cram it all onto one line, you could
> #CFLAGS="whatever" && CXXFLAGS=CFLAGS && emerge something

without the typo and even smaller:
# CFLAGS="whatever" && CXXFLAGS=$CFLAGS emerge something

SCNR
Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Jason Stubbs

External


Since: Feb 21, 2004
Posts: 324



(Msg. 7) Posted: Fri Apr 01, 2005 4:10 am
Post subject: Re: [gentoo-user] portage and package specific CFLAGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Friday 01 April 2005 04:07, Ciaran McCreesh wrote:
> On Thu, 31 Mar 2005 20:46:31 +0200 Christoph Gysin <cgysin.DeleteThis@gmx.ch>
>
> wrote:
> | Juergen Fiedler wrote:
> | > If you really feel the need to cram it all onto one line, you could
> | > #CFLAGS="whatever" && CXXFLAGS=CFLAGS && emerge something
> |
> | without the typo and even smaller:
> | # CFLAGS="whatever" && CXXFLAGS=$CFLAGS emerge something
>
> CFLAGS="whatever" CXXFLAGS="$CFLAGS" emerge fnord
>
> No &&.

Conflicting advice...

On Thursday 31 March 2005 16:46, Aaron Walker wrote:
> One thing to note though, is that your reasoning is flawed when setting
> CXXFLAGS to $CFLAGS. CFLAGS wont be equal to "whatever" until after you
> hit enter, so unless CFLAGS is already set in your env, CXXFLAGS will be
> null. If it is set in your env, CXXFLAGS will be whatever CFLAGS is in
> your env, not "whatever".

/me checks which is correct.

$ CFLAGS="old"
$ CFLAGS="new" CXXFLAGS="$CFLAGS" echo $CFLAGS - $CXXFLAGS
old -

Woah... Ciaran is wrong! First time for everything, eh? *wink, nudge*

Regards,
Jason Stubbs
--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] How do I enable package specific FEATURES an.. - Hi, I always want to build evolution and evolution-data-server with: CFLAGS="-march=k8 -O1 -ggdb -pipe"..

[gentoo-user] specific version of package in /etc/portage/.. - hi everybody! I don't like to upgrade to ruby version 1.8.3 so i added the following line(s) (not all at the same..

[gentoo-user] how to determin CFLAGS used in a package eme.. - Is there are way to determine the CFLAGS options used to build/emerge a specific package? In my case, I am..

[gentoo-user] Not emerging a specific package - I don't know how to avoid to emerge a package contained in a bundle. For instance: What shall I do while emerging kde....

[gentoo-user] Package specific USE flags - Hi, probably I got something wrong. I have put dev-lang/tcl doc dev-lang/tk doc dev-lang/tclx doc into..

[gentoo-user] 'emerge portage' and "Error: the virtual/os-.. - Hi, performing "emerge -vD world" again after two weeks without emerging anything stops during emerging port...
       Soft32 Home -> Linux -> User All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]