Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
package.env
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 6

PostPosted: Sat Dec 28, 2024 11:21 am    Post subject: package.env Reply with quote

I am trying to use package.env to change the CFLAGS for ffmpeg. In /etc/portage/package.env I have
Code:
media-video/ffmpeg ffmpeg.conf

In /etc/portage/env/ffmpeg.conf I have
Code:
CFLAGS="-O2 -pipe"

but emerge keeps choosing the CFLAGS in my /etc/portage/make.conf (with -march=native) when emerging ffmpeg.

What am I doing wrong?
Back to top
View user's profile Send private message
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 6

PostPosted: Sat Dec 28, 2024 11:27 am    Post subject: Reply with quote

I forgot CXXFLAGS. Trying now...

Edit: When I tried with CXXFLAGS set in the ffmpeg.conf file, it still didn't work. It only worked when I set FFLAGS and FCFLAGS. But I thought those are for Fortran, so not sure what happened.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20539

PostPosted: Sat Dec 28, 2024 7:23 pm    Post subject: Reply with quote

That seems worth checking with a dev on IRC or opening a bug report if you don't use IRC.

Maybe it isn't related, but the ebuild does contain: --optflags="${CFLAGS}"

So possibly something is happening out of order? But that doesn't explain why the FF(orttran) flags would cause it to work.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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