From: Jo-Philipp Wich Date: Mon, 28 Dec 2009 23:28:44 +0000 (+0000) Subject: build: adjust hostenv.sh for OS X X-Git-Tag: 0.10.0~864 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7ec41b283ddba3c109a19319d13f574dc3c6bc0;p=oweals%2Fluci.git build: adjust hostenv.sh for OS X --- 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;;"