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

Re: Build process ignores apt-buid configuration



José Alburquerque wrote:

Hi.  I'd like to "optimize" certain packages specifically for my system
(It's a Pentium 3 system; though old, I'd like to recompile some
packages for i686 to improve performance).  I was looking into
apt-build, but I tested it on libxine1 and it doesn't seem to use the
optimizations that I had configured it for.  This is my config:

build-dir = /var/cache/apt-build/build
repository-dir = /var/cache/apt-build/repository
Olevel = -O3
mtune = -mtune=pentium3
options = " "
make_options = " "

and this is what I get when gcc runs:

/bin/sh ../libtool-nofpic --tag=CC --mode=link gcc  -mtune=pentiumpro
-O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4
-falign-jumps=4  -mpreferred-stack-boundary=2 -fexpensive-optimizations
-fschedule-insns2 -fno-strict-aliasing -ffast-math -finline-functions
-Wall -Wnested-externs -Wcast-align -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -DNDEBUG -D_REENTRANT
-D_FILE_OFFSET_BITS=64 -DXINE_COMPILE  -g   -o libxineposix.la

Is there something that I'm overlooking?  I'm fairly new to Debian so
I'm sure there's something that I don't understand, but if anyone has
any pointers, I'd really appreciate it!  Thanks.

Indeed, there was something I was overlooking: the
/usr/share/doc/apt-build/README.Debian file (I'm hurrying so much to get
my system as I like it, that I'm overlooking the basic things)!  At any
rate, in it there is an excerpt about how apt-build operates:

Q: gcc and g++ do not seem to be called with good options!

A: *** They are called with them! ***
What you see on your screen is the command called by make, but
the wrapper wraps (yeah, it does) calls to gcc/g++ and adds options you
specified in the apt-build configuration file.
You won't see this on your screen.
Try `ps ax | grep gcc' instead as a proof, while building.

I'm really sorry for not checking the docs first, I'm sure it would have
cleared things up greatly if I had!


Sincerely
Jose Alburquerque






Reply to: