Re: 686 optimized libc6
On Wed, Apr 16, 2003 at 03:08:25PM +0200, Yildiz, Murat wrote:
>
>
> I have
> apt-get -b build-dep libc6
> apt-get source libc6
>
> and cd into glibc-2.2.5 and have these files :
> db1-addon-2.1.3.tar.bz2 glibc-2.2.5.tar.bz2 prep.sh
> version
> debian glibc-linuxthreads-2.2.5.tar.bz2 temp.diff
>
> Where is the Makefile to edit?Can you please more specific ?It is the first
> time I edit a Debian package source.
IIRC glibc has "nice" Makefiles which take account of your
CFLAGS/CXXFLAGS, so you don't actually have to edit anything.
export CFLAGS="-O2 -march-i686"
export CXXFLAGS="-O2 -march=i686"
should do the trick - you can check by looking to see if "-march=i686"
shows up in the gcc command lines during the build.
Some packages have "nasty" Makefiles which override these variables.
Given the enormous variation between different people's idea of how to
set up the Makefiles, I reckon the easiest way around this is to
install a wrapper around gcc (eg. pentium-builder).
I think I also had to install the resulting .debs with
dpkg -i --force-architecture because the packaging system thinks the
system architecture is i386 and moans at installing i686 packages.
Pigeon
Reply to: