summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-09-02 17:27:58 (GMT)
committerBrad King <brad.king@kitware.com>2003-09-02 17:27:58 (GMT)
commit0cd97b4030b858de8b218fa61c0d064459fcc0d1 (patch)
treeb4b9be44d9e1fa36e01d6a113775755819545713 /bootstrap
parentdd4e8df29a6f024890df32e9b223537ef204b102 (diff)
downloadCMake-0cd97b4030b858de8b218fa61c0d064459fcc0d1.zip
CMake-0cd97b4030b858de8b218fa61c0d064459fcc0d1.tar.gz
CMake-0cd97b4030b858de8b218fa61c0d064459fcc0d1.tar.bz2
BUG: Must use C compiler to compile C files during bootstrap, not C++ compiler.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 3403929..94f7aa3 100755
--- a/bootstrap
+++ b/bootstrap
@@ -636,10 +636,15 @@ if [ "x${cmake_ansi_cxx_flags}" != "x" ]; then
cmake_cxx_flags="${cmake_ansi_cxx_flags} ${cmake_cxx_flags}"
fi
+if [ "x${cmake_c_flags}" != "x" ]; then
+ cmake_c_flags="${cmake_c_flags} "
+fi
+
if [ "x${cmake_cxx_flags}" != "x" ]; then
cmake_cxx_flags="${cmake_cxx_flags} "
fi
+cmake_c_flags="${cmake_c_flags}-I`cmake_escape \"${cmake_source_dir}/Source\"` -I`cmake_escape \"${cmake_bootstrap_dir}\"`"
cmake_cxx_flags="${cmake_cxx_flags}-I`cmake_escape \"${cmake_source_dir}/Source\"` -I`cmake_escape \"${cmake_bootstrap_dir}\"`"
echo "cmake: ${objs}" > "${cmake_bootstrap_dir}/Makefile"
echo " ${cmake_cxx_compiler} ${LDFLAGS} ${cmake_cxx_flags} ${objs} -o cmake" >> "${cmake_bootstrap_dir}/Makefile"
@@ -651,7 +656,7 @@ done
for a in ${KWSYS_C_SOURCES}; do
src=`cmake_escape "${cmake_source_dir}/Source/kwsys/${a}.c"`
echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"
- echo " ${cmake_cxx_compiler} ${cmake_cxx_flags} -DKWSYS_NAMESPACE=cmsys -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
+ echo " ${cmake_c_compiler} ${cmake_c_flags} -DKWSYS_NAMESPACE=cmsys -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
done
for a in ${KWSYS_CXX_SOURCES}; do
src=`cmake_escape "${cmake_source_dir}/Source/kwsys/${a}.cxx"`