package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target
authorLionel Landwerlin <llandwerlin@gmail.com>
Sat, 1 May 2010 12:10:28 +0000 (14:10 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 3 May 2010 11:37:11 +0000 (13:37 +0200)
commit0d1830b07db4ebfd14e77a258de6fb391e57e960
tree8dd7a572646a76fc1804f46bd041fd8b90643ddf
parentd39641ccd64b82494716e4bf35ac5d0c8fa67201
package: Add $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for host but not target

Some packages like icu requires to be compiled against the host system
first to be able to compile against the target. This is due to the
usage of self generated binaries by the package to build itself. When
the generated tools also depends on generated libraries it is required
to add the path to these libraries in the library path
(LD_LIBRARY_PATH) especially for the configure step.

Adding $(HOST_DIR)/usr/lib to LD_LIBRARY_PATH for target compilation
might break the link step by mixing host libraries and target
binaries.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.in