diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh
index c6dad7e26fb8c41f889ccc181769a18f785e4af8..4fd881c4ec2405243dbaee389dadfdf8d7e0cd86 100755
--- a/scripts/setup-environment.sh
+++ b/scripts/setup-environment.sh
@@ -91,6 +91,5 @@ export TEMPLATECONF="${PWD}/sources/meta-b2qt/conf"
 sed -i -e "/QT_SDK_PATH/s:\"\":\"${QT_SDK_PATH}\":" conf/local.conf
 
 unset QT_SDK_PATH
-unset BUILDDIR
 unset TEMPLATECONF
 unset LAYERSCONF