diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-02-28 21:03:06 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-02-28 21:03:06 +0000 |
commit | 98b042952a9ee8513ead66040ce4261e7a011aba (patch) | |
tree | fcc87cffb8692d17024cbc0d03841b07a345d6fb | |
parent | 122ba8031d2311429e94014ad98849c51b3b634f (diff) |
add staging_dir/host/lib to LD_LIBRARY_PATH so that host-built applications can install and make use of shared libraries
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14698 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/toplevel.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk index 6d46fe1edd..eaaf6d37d1 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -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= |