build: adjust hostenv.sh for OS X
[project/luci.git] / build / hostenv.sh
1 ##!/bin/sh
2 export LD_LIBRARY_PATH="$1/usr/lib:$LD_LIBRARY_PATH"
3 [ `uname -s` == "Darwin" ] && export DYLD_LIBRARY_PATH="$1/usr/lib:$DYLD_LIBRARY_PATH"
4 export PATH="$1/bin:$1/usr/bin:$PATH"
5 export LUA_PATH="$1/$2/?.lua;$1/$2/?/init.lua;;"
6 export LUA_CPATH="$1/$3/?.so;;"
7 export LUCI_SYSROOT="$1"
8 $4