X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=build%2Fhostenv.sh;h=ad5a71e41b2852fa4ad11bd551503b985b13ddb1;hb=8feae0cba8454cba3b122d5351f2e2f336905134;hp=ee906b0013c6425b6d018ee9f69da26b1f7d33e3;hpb=7384e0e6b77518efa4d113ede46f8c107de6f604;p=project%2Fluci.git diff --git a/build/hostenv.sh b/build/hostenv.sh index ee906b001..ad5a71e41 100755 --- a/build/hostenv.sh +++ b/build/hostenv.sh @@ -1,6 +1,8 @@ #!/bin/sh export LD_LIBRARY_PATH="$1/usr/lib:$LD_LIBRARY_PATH" +[ `uname -s` == "Darwin" ] && export DYLD_LIBRARY_PATH="$1/usr/lib:$DYLD_LIBRARY_PATH" export PATH="$1/bin:$1/usr/bin:$PATH" export LUA_PATH="$1/$2/?.lua;$1/$2/?/init.lua;;" export LUA_CPATH="$1/$3/?.so;;" +export LUCI_SYSROOT="$1" $4