[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: config variables in config.h
From: |
Dan Kegel |
Subject: |
Re: config variables in config.h |
Date: |
Thu, 05 Sep 2002 10:49:27 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3 |
Alexandre Duret-Lutz wrote:
I've stopped hard-coding absolute paths in my package because it
hinders relocation of binary packages.
Instead, at configure-time (not everybody will like this) I turn
each pathname into a path relative to $(prefix), and guess
$(prefix) at run-time.
See the following macros
http://ac-archive.sourceforge.net/Miscellaneous/relpath.html
http://ac-archive.sourceforge.net/Miscellaneous/normpath.html
and
http://ac-archive.sourceforge.net/Miscellaneous/stdrelpaths.html
That's good practice, if you ask me. I think Montavista Linux's
cross toolchain build script does something similar to make their
cross-gcc relocatable on install. (I can post
their gcc patch if anyone's interested; it's probably not as pretty).
Thanks for posting that tip.
- Dan
Re: config variables in config.h,
Dan Kegel <=