diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-28 23:28:44 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-28 23:28:44 +0000 |
commit | a7ec41b283ddba3c109a19319d13f574dc3c6bc0 (patch) | |
tree | 44a85fb945ed82d539fd3841e81163a8d11b3d35 /build/hostenv.sh | |
parent | 6ea063dc11d38fa1f2b7c57eb8193fd8034d736e (diff) |
build: adjust hostenv.sh for OS X
Diffstat (limited to 'build/hostenv.sh')
-rwxr-xr-x | build/hostenv.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/hostenv.sh b/build/hostenv.sh index fbf7ca1b7..657439160 100755 --- a/build/hostenv.sh +++ b/build/hostenv.sh @@ -1,5 +1,6 @@ -#!/bin/sh +##!/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;;" |