infinity0/mozilla-gnome-keyring — pull request #7 by fat-lobyte (2012-03-17 12:37:24+00:00)
Title: Makefile: Use -rpath instead of LD_LIBARY_PATH for xpcom_abi

Hi, please pull my commit about rpath-linking. This simplifies the invocation of the xpcom_abi and fixes cases, where multiple library directories are needed (ubuntu once again).

Makefile:
* The PLATFORM variable was set with a recursive make invocation everytime the
Makefile was called, even when trying to do a "clean". If the compilation of
the xpcom_abi executable failed, no make command could be executed.

Instead, we depend on the get_abi target to set the PLATFORM variable using
the "eval"-function.

* Instead of providing LD_LIBARY_PATH for the xpcom_abi program, we link the
shared libraries using -rpath. This way, the executable will know where to
find the shared libraries.