diff options
author | Alan McGovern <alan@xamarin.com> | 2013-08-28 02:29:50 +0400 |
---|---|---|
committer | Alan McGovern <alan@xamarin.com> | 2013-08-28 02:31:29 +0400 |
commit | 1e14f353847798b7a5d4a9e62b3148b4aa0cc618 (patch) | |
tree | bf5ccae5a23dba4bff381a6ec09d90bf832d5f81 /configure | |
parent | 64ec9b155d65e243376a6b5bd191921a3ac35a19 (diff) |
[build] On MacOS always export the environment variables we need
This is a slightly better approach to making sure the environment is
correct. If DYLD_FALLBACK_LIBRARY_PATH is unset then we can assume
the user has not set up the other two exports we require in order to
build and so we export all three at once.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -256,6 +256,14 @@ if [ x$select == xyes -o ! -a profiles/$profile ]; then select_packages fi +if test `uname` = "Darwin"; then + if test "x$DYLD_FALLBACK_LIBRARY_PATH" = "x"; then + export DYLD_FALLBACK_LIBRARY_PATH="/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib" + export PATH="$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin" + export ACLOCAL_FLAGS="-I /Library/Frameworks/Mono.framework/Versions/Current/share/aclocal" + fi +fi + configure_packages [ $? -eq 1 ] && exit 1 |