[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] conditional configure in build section of spec file
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] conditional configure in build section of spec file |
Date: |
Sat, 30 Oct 2010 09:30:45 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080707) |
Hi Aaron,
Because it's possible that configure may pick up different results (say
you've installed a new library etc) it's safer to always run it. So I
would not recommend changing your .spec files.
If you want to avoid configure, the best best is to use ltib -m shell
(as you suggest). Once in this mode you can basically run 'make' by
hand (or anything else) but with the cross compiler spoofed and
pkg-config setup to use your rootfs area.
Regards, Stuart
Aaron Wegner wrote:
> Hi Stuart. When I rebuild my packages by typing ./ltib and my package has
> changed it always runs configure although maybe I only wanted to recompile
> after changing a source file. I added some logic to my spec files to
> avoid this, but I don't know if that is appropriate. I looked through a
> bunch of the other spec files in the LTIB for an example but they mostly
> configure and make as far as I can see. Should I instead be in the LTIB
> shell mode and type make? Does it make sense to put something like the
> following in a spec file?
>
>
> Thanks,
>
> Aaron
>
> %Build
> if ! [ -f config.status -a -f config.h -a -f libtool -a -f config.log -a
> -f Makefile ]; then
> ./configure --prefix=%{_prefix} --bindir=/bin --host=$CFGHOST
> --build=%{_build}
> fi
> make
>
>