[Top][All Lists]

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

Re: Core-utils 7.2; building only 'su'

From: Alfred M. Szmidt
Subject: Re: Core-utils 7.2; building only 'su'
Date: Tue, 14 Apr 2009 05:43:32 -0400

   from the ./configure documentation it seems like --prefix=/foo
   would be preferred to destdir.

Not at all! The correct method is to use DESTDIR, if you do:

./configure --prefix=$FOO --exec-prefix=$BAR

and then do:

make install prefix=$PWD/inst

_ALL_ exec_prefix files (i.e. all arch. dependant files, executables,
libraries, etc) will be installed in $PWD/inst, while all
arch. independant files will be installed in $FOO.  DESTDIR is
prepended to all installation targets only at `make install' time.

Using prefix in conjunction with `make install' is (almost) always

Problem is that configure cannot in all honesty document DESTDIR,
since this is a variable that is passed only to make.  Indeed, if you
are not using a Makefile, one could use any name for the variable

Cheers from Alfred who gets a nervous tick when he sees people use prefix...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]