diff options
author | Brad King <brad.king@kitware.com> | 2003-09-02 17:27:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-09-02 17:27:58 (GMT) |
commit | 0cd97b4030b858de8b218fa61c0d064459fcc0d1 (patch) | |
tree | b4b9be44d9e1fa36e01d6a113775755819545713 /bootstrap | |
parent | dd4e8df29a6f024890df32e9b223537ef204b102 (diff) | |
download | CMake-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-x | bootstrap | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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"` |