diff --git a/gitlab/build.sh b/gitlab/build.sh
index 1ba1e5aba3f80994af1d01688eb9fc156825e061..28833cd97c81bb674fcf9df4e41526c5fbc4e799 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;