build: zoneinfo2lua.pl: rework script to accommodate split tzdata.lua and tzoffset...
[project/luci.git] / build / hostenv.sh
index ee906b0..ad5a71e 100755 (executable)
@@ -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