From 5d3e3096fb7e95a91cb8d993e44e8edeaf691d4e Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Sat, 24 Sep 2016 08:43:14 +0200
Subject: [PATCH] Don't implement LD_LIBRARY_PATH hack on OSX (doesn't need it)

---
 gitlab/build.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gitlab/build.sh b/gitlab/build.sh
index 1ba1e5a..28833cd 100755
--- a/gitlab/build.sh
+++ b/gitlab/build.sh
@@ -6,7 +6,9 @@ source $(dirname ${0})/functions.sh
 run_cmd_ld ./bin/buildout
 
 # Corrects the virtualenv to take LD_LIBRARY_PATH into account
-fix_venv
+if [ ${ARCH} == "linux" ]; then
+  fix_venv
+fi
 
 if [ -x ./bin/bob_dbmanage.py ]; then
   run_cmd ./bin/bob_dbmanage.py all download --force;
-- 
GitLab