configure and --prefix

Rob Landley rob at landley.net
Mon Dec 12 20:09:09 UTC 2005


On Monday 12 December 2005 03:28, Dely Nicolas wrote:
> Hi,
>
> With configure scripts, I would like to know which is better between the
> two following?
>
> 1) --prefix=/usr
>    make DESTDIR=$(STAGING_DIR) -C <PACKAGE_DIR> install
>
> or
>
> 2) --prefix=$(STAGING_DIR)/usr
>    make -C <PACKAGE_DIR> install
>
> I saw the first one in gentoo ebuild and has been replaced in buildroot
> by the second one.
>
> With the second one I got many problems with DirectFB and hard path
> using prefix. So I think the first is better, don't you?

It looks like the first one is designed to set up a chroot environment, and 
will probably only work if you chroot into DESTDIR, so /usr points to the 
installed package.

The second one is intended to be run on the host system, and needs the full 
path so it will only work if you _don't_ chroot.

> Regards,
>
> Nicolas

Rob
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.



More information about the uClibc mailing list