diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2015-01-26 22:03:35 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2015-01-26 22:03:35 +0000 |
commit | 18e60ed23627cb035e230f0a31fbd40216b39c5f (patch) | |
tree | e1c6b7d3dac2d8cd8a0e43b7a382142fb367ebc3 /cli_common.c | |
parent | 8b1a9713d9dc3e7a5bf2a1e4b71ee5770c6087e2 (diff) | |
download | flashrom-18e60ed23627cb035e230f0a31fbd40216b39c5f.tar.gz |
Let pkg-config work with cross-compilers.
In cross-compiler setups pkg-config often needs some help to
determine the correct libraries. This can be done for example by
setting PKG_CONFIG_LIBDIR to point to the directory where the
cross-compile .pc files are located. If PKG_CONFIG_LIBDIR was not
set already outside of the Makefile we set it according to LIBS_BASE
and add the respective path to the linker's rpath. This makes it
possible to easily cross-compile by only setting CC and LIBS_BASE on
the command line.
This patch also removes the explicit default for LIBS_BASE again
because it does not play well with this change and was a bad idea to
begin with.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1876 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_common.c')
0 files changed, 0 insertions, 0 deletions