[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling CPU-optimized packages



Adam Porter wrote, On 2006-09-18 19:12:
I'm sure this has been covered before, but I've dug through Google
and /usr/share/doc and I can't find a solution.  Forgive me if I missed the
answer.

I'm trying to compile Firefox with "-march=athlon-xp".  (Please spare me any
lecture about whether it's worth it, I am experimenting.)  Although it
worked properly a few weeks ago, apt-build doesn't want to play nice right
now; it keeps trying to build the wrong version of the package.  (apt-build
has a lot of bugs, actually, and it rarely works properly.)  So I've been
trying to use apt-src.

What I would like to find is a way to set the compiler flags other than
editing debian/rules every time the source is extracted.

Google has turned up things like DEB_ARCH_OPT_FLAGS (which seems to do
nothing, and I kind of doubt it ever actually existed), and
DEB_BUILD_OPTIONS (which a quick scan of debian/rules indicates won't set
arbitrary options).

So, is there any way to set compiler flags in the Debian package building
process other than using apt-build or editing debian/rules?

look at the package:

pentium-builder

"Replaces gcc, cc, and g++ with scripts that build pentium optimized code. (Other processors can be optimised for as well.)



Reply to: