Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XF86 Compile Options
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Xptos
n00b
n00b


Joined: 29 May 2002
Posts: 53
Location: Japan

PostPosted: Mon Jun 10, 2002 8:41 am    Post subject: XF86 Compile Options Reply with quote

I was in the process of recompiling xf86 in order to get support for my card. I did "ebuild foo unpack", went to the "work/xc/config/cf/" dir, and created "host.def" with "#define XF86CardDrivers savage vga".

When I started compile, I noticed that it was building as -O2. I had to go to my "host.def" file and add "#define DefaultGcc2i386Opt -O3 -march=i686 -bla -bla" to get it to compile with the proper options.

Is this normal?

Also, once I have made the changes to the sources, do I need to do "emerge foo compile merge", or is remerge the proper option?
Back to top
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Mon Jun 10, 2002 12:05 pm    Post subject: Reply with quote

Wouldn't it be easier to modify the ebuild itself, adding a single line to src_unpack()
Code:
echo "#define XF86CardDrivers savage vga" >> config/cf/host.def

And emerge as normal :?:
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jun 10, 2002 1:24 pm    Post subject: Reply with quote

emerge honors your C[XX]_FLAGS variables when compiling, but in your case emerge isn't compiling for you. So, you have to figure out how to get the optimizations settings working the way you want them to. Not a Portage bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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