View previous topic :: View next topic |
Author |
Message |
Xptos n00b
Joined: 29 May 2002 Posts: 53 Location: Japan
|
Posted: Mon Jun 10, 2002 8:41 am Post subject: XF86 Compile Options |
|
|
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 |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Mon Jun 10, 2002 12:05 pm Post subject: |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jun 10, 2002 1:24 pm Post subject: |
|
|
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 |
|
|
|