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

Re: Question about apt-get source and building a package



On Mon, 19 Mar 2001, Charles Farley wrote:

> I am a little picky about a few things. sorry if that makes me a bad person.
> But I perfer my X, compiler, and glibc libraries (among other things) to be
> compiled specifically for my system arch.
> I assumed that apt-get source and compiling these package on my system with
> export CFLAGS='-march=i686 and such will do the trick, but I noticed that
> dpkg-architecture prints out i386 for everyhting.
> Will this over-ride my export settings and compile, for instance, glibc for
> a lesser arch?
> I have looked into everyhitng I could but have found no really clear answer
> on this matter.
> How do you compile a package for your specific arch in debian, and still
> maintain it in dpkg package management?

One possibility:

<--  snip  -->

Package: pentium-builder
...
Description: force pentium optimized compilation
 Replaces gcc, cc, and g++ with scripts that build pentium optimized code.
 (Other processors can be optimized for as well.)
 .
 By default, after installing this package, the compilers will behave
 normally. However, if the environment variable DEBIAN_BUILDARCH=pentium
 is set, they will enter pentium optimized compile mode.

<--  snip  -->



cu
Adrian

-- 

Nicht weil die Dinge schwierig sind wagen wir sie nicht,
sondern weil wir sie nicht wagen sind sie schwierig.




Reply to: