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



Reply via email to