summaryrefslogtreecommitdiff
path: root/support-files/mysql.spec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r--support-files/mysql.spec.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh
index f46a283f814..58909518b25 100644
--- a/support-files/mysql.spec.sh
+++ b/support-files/mysql.spec.sh
@@ -209,6 +209,12 @@ fi
rm -rf $RBR
mkdir -p $RBR
+#
+# Use MYSQL_BUILD_PATH so that we can use a dedicated version of gcc
+#
+PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
+export PATH
+
# We need to build shared libraries separate from mysqld-max because we
# are using --with-other-libc