[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
wrong.
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
prefix/exec_prefix/bindir/...
Cheers from Alfred who gets a nervous tick when he sees people use prefix...
- Core-utils 7.2; building only 'su', Douglas Held, 2009/04/10
- Re: Core-utils 7.2; building only 'su', Jim Meyering, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Alfred M. Szmidt, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Douglas Held, 2009/04/14
- Re: Core-utils 7.2; building only 'su',
Alfred M. Szmidt <=
- Re: Core-utils 7.2; building only 'su', Eric Blake, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Alfred M. Szmidt, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Eric Blake, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Alfred M. Szmidt, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Eric Blake, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Alfred M. Szmidt, 2009/04/14
- Re: Core-utils 7.2; building only 'su', Ralf Wildenhues, 2009/04/15
- Re: Core-utils 7.2; building only 'su', Eric Blake, 2009/04/15
- Re: Core-utils 7.2; building only 'su', Bob Friesenhahn, 2009/04/15
- Re: Core-utils 7.2; building only 'su', Alfred M. Szmidt, 2009/04/15