diff --git a/pkgs/build-support/make-wrapper/make-wrapper.sh b/pkgs/build-support/make-wrapper/make-wrapper.sh index bab89ec77ddc..3b1833cf69e2 100644 --- a/pkgs/build-support/make-wrapper/make-wrapper.sh +++ b/pkgs/build-support/make-wrapper/make-wrapper.sh @@ -10,6 +10,13 @@ makeWrapper() { for ((n = 2; n < ${#params[*]}; n += 1)); do p=${params[$n]} + if test "$p" = "--set"; then + varName=${params[$((n + 1))]} + value=${params[$((n + 2))]} + n=$((n + 2)) + echo "export $varName=$value" >> $wrapper + fi + if test "$p" = "--suffix"; then varName=${params[$((n + 1))]} separator=${params[$((n + 2))]}