Doesn&#39;t work.. What I have is:<br><br><font class="Apple-style-span" size="1"># export CC=i686-android-linux-gcc<br># export CXX=i686-android-linux-gcc<br><br>&lt;&lt; skipped long paths to compiler &gt;&gt;<br><br>  The C compiler  &quot;....i686-android-linux-gcc&quot;  is not able to compile a simple test program.<br>
   It fails with the following output:  Change Dir: .../CMakeFiles/CMakeTmp<br> <br>    Run Build Command:/usr/bin/make &quot;cmTryCompileExec/fast&quot;<br> <br>  /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make<br>
  CMakeFiles/cmTryCompileExec.dir/build<br> <br>  make[1]: Entering directory  `....CMakeFiles/CMakeTmp&#39;<br>  ..../cmake-2.8.4/bin/cmake -E  cmake_progress_report  ..../CMakeFiles/CMakeTmp/CMakeFiles  1<br><br>   Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o<br>
    .../i686-android-linux-gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c.../CMakeFiles/CMakeTmp/testCCompiler.c<br> <br>   Linking C executable cmTryCompileExec<br>   ..../cmake-2.8.4/bin/cmake -E  cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1<br>
     .../i686-android-linux-gcc  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec  -rdynamic<br>   <br> .../i686-android-linux-4.4.3/bin/../lib/gcc/i686-android-linux/4.4.3/../../../../i686-android-linux/bin/ld:  crt1.o: No such file: No such file or directory<br>
   collect2: ld returned 1 exit status<br></font><br><div>May be I can add -lc to linker command line?<br><br>2011/6/23 Yngve Inntjore Levinsen &lt;<a href="mailto:yngve.levinsen@gmail.com">yngve.levinsen@gmail.com</a>&gt;:<br>
&gt; Torsdag 23 juni 2011 13.34.24 skrev gekso :<br>&gt;<br>&gt;&gt; Hello! Please, help to to set custom linker. I use gcc1/g++1 instead<br>&gt;<br>&gt;&gt; of basic gcc/g++ on system.<br>&gt;<br>&gt;&gt; I&#39;ve tried to export CC/CXX, but I need to change linker from &quot;ld&quot; to<br>
&gt;<br>&gt;&gt; &quot;g++1&quot;. Is it possible?<br>&gt;<br>&gt;&gt; _______________________________________________<br>&gt;<br>&gt;&gt; Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>&gt;<br>&gt;&gt;<br>
&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt;&gt;<br>&gt;<br>&gt;&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>&gt;<br>&gt;&gt;<br>&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;<br>&gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>&gt;&gt;<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; Try:<br>&gt; set(CMAKE_LINKER g++1)<br>&gt;<br>&gt; I think it should work (or something similar), but haven&#39;t tested..<br>&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Yngve<br>
&gt;<br>&gt; _______________________________________________<br>&gt; Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>&gt; Please keep messages on-topic and check the CMake FAQ at:<br>&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>&gt;<br><br></div>