On Sat, Sep 28, 2002 at 04:33:59AM +0200, Pierre THIERRY wrote:
> I wanted to recompile the packages I use the most to my precise
> architecture to get the most out of my CPU. After some (too) long
> searches, I found a list of GCC targets (don't the AMD of the i386
> family have specificities ? I only found i686 fitting my needs), and
> where it was told to gcc by dpkg. But dpkg seems not willing to hear
> anything else tant i386 :
> $ grep -n "1\.0\.6" /usr/bin/dpkg-architecture
> 39:# 1.0.6 Revert to i386 to comply with policy § 5.1.
> But the § 5.1 of the policy deals about Time Stamps...
> I tried this but when I ran dpkg-architecture, it output only i386 for
> all variables :
> --- /usr/bin/dpkg-architecture 2002-07-14 22:19:49.000000000 +0200
> +++ dpkg-architecture 2002-09-28 02:59:51.000000000 +0200
> @@ -96,7 +96,7 @@
> sub rewrite_gnu_cpu {
> local ($_) = @_;
>
> - s/(?:i386|i486|i586|i686|pentium)(.*linux)/i386$1/;
> + # s/(?:i386|i486|i586|i686|pentium)(.*linux)/i386$1/;
> s/ppc/powerpc/;
> return $_;
> }
> So how can I compile my packages specifically for my CPU ?
Perhaps by setting "DEB_HOST_GNU_TYPE=i686-linux" in your environment
before calling debian/rules?
There's nothing in policy that requires packages to transparently allow
you to optimize for a subarch. You may have to try a few different
things (CFLAGS also comes to mind) to find a combination that works for
most packages.
Steve Langasek
postmodern programmer
Attachment:
pgpjohOBXQjSx.pgp
Description: PGP signature