On 4/10/07, Christopher Friedt <> wrote:
> Does anyone know how to change all of the static paths that are placed
> into libraries & exutable files during compile?
>
> For instance, i would like the --prefix stored in a library or
> executable to be /usr/local, but when I'm cross-compiling the package, i
> do not actually want it installed to /usr/local but
> $PWD/../package-install/usr/local, so that I can easily create a tarball
> of the installation files.
You can usually use make install DESTDIR=/path/to/package-install
That will dump all the stuff into /path/to/package-install/usr/local,
which you can then tar up.
For the binaries to actually work, though, you probably need to
install them into /usr/local.
Alternatively, if I miss understood your question, and you were
wondering about how to compile so you can install and run into any
prefix, check out binreloc from the Autopackage project:
http://trac.autopackage.org/browser/binreloc/trunk/fdbr.c
Cheers,
- Taj
--
Taj
http://www.wildgardenseed.com/Taj/blog
Need a GMail invite? Email me.
Peace cannot be kept by force; it
can only be achieved by understanding.
-- A. Einstein
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|