From 483a5b249adb9748de35abf16e6ba82d70e1f259 Mon Sep 17 00:00:00 2001
From: Jonathan Perkin <jonathan.perkin@oracle.com>
Date: Mon, 29 Mar 2010 17:54:08 +0200
Subject: [PATCH] Variables need to be exported so cmake can pick them up.

---
 support-files/mysql.spec.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh
index 6ff92e17a1..b9adab7ed6 100644
--- a/support-files/mysql.spec.sh
+++ b/support-files/mysql.spec.sh
@@ -342,13 +342,13 @@ set -eu
 # variable name, finally a default.  RPM_OPT_FLAGS is assumed to be
 # a part of the default rpm build environment.
 #
-PATH=${MYSQL_BUILD_PATH:-$PATH}
-CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
-CXX=${MYSQL_BUILD_CXX:-${CXX:-g++}}
-CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
-CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
-LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
-CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
+export PATH=${MYSQL_BUILD_PATH:-$PATH}
+export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
+export CXX=${MYSQL_BUILD_CXX:-${CXX:-g++}}
+export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
+export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
+export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
+export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
 
 # Build debug mysqld and libmysqld.a
 mkdir debug
-- 
2.30.9