add staging_dir/host/lib to LD_LIBRARY_PATH so that host-built applications can insta...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 28 Feb 2009 21:03:06 +0000 (21:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 28 Feb 2009 21:03:06 +0000 (21:03 +0000)
SVN-Revision: 14698

include/toplevel.mk

index 6d46fe1..eaaf6d3 100644 (file)
@@ -23,6 +23,8 @@ export RELEASE
 export REVISION
 export OPENWRTVERSION
 export IS_TTY=$(shell tty -s && echo 1 || echo 0)
+export LD_LIBRARY_PATH:=$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)$(STAGING_DIR_HOST)/lib
+export DYLD_LIBRARY_PATH:=$(if $(DYLD_LIBRARY_PATH),$(DYLD_LIBRARY_PATH):)$(STAGING_DIR_HOST)/lib
 
 # make sure that a predefined CFLAGS variable does not disturb packages
 export CFLAGS=