diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-02-28 21:03:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-02-28 21:03:06 +0000 |
commit | 5dcaa510e8fda973d1dd616ed2bbc486ddf78596 (patch) | |
tree | b02c1259774b24715b95b84c7c7ff00fa75aacd1 /include | |
parent | 2b754c248784f40f47b22005efdc13fb1600ce79 (diff) | |
download | mtk-20170518-5dcaa510e8fda973d1dd616ed2bbc486ddf78596.zip mtk-20170518-5dcaa510e8fda973d1dd616ed2bbc486ddf78596.tar.gz mtk-20170518-5dcaa510e8fda973d1dd616ed2bbc486ddf78596.tar.bz2 |
add staging_dir/host/lib to LD_LIBRARY_PATH so that host-built applications can install and make use of shared libraries
SVN-Revision: 14698
Diffstat (limited to 'include')
-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 6d46fe1..eaaf6d3 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= |