Doesn'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><< skipped long paths to compiler >><br><br> The C compiler "....i686-android-linux-gcc" 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 "cmTryCompileExec/fast"<br> <br> /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make<br>
CMakeFiles/cmTryCompileExec.dir/build<br> <br> make[1]: Entering directory `....CMakeFiles/CMakeTmp'<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 <<a href="mailto:yngve.levinsen@gmail.com">yngve.levinsen@gmail.com</a>>:<br>
> Torsdag 23 juni 2011 13.34.24 skrev gekso :<br>><br>>> Hello! Please, help to to set custom linker. I use gcc1/g++1 instead<br>><br>>> of basic gcc/g++ on system.<br>><br>>> I've tried to export CC/CXX, but I need to change linker from "ld" to<br>
><br>>> "g++1". Is it possible?<br>><br>>> _______________________________________________<br>><br>>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>><br>>><br>
><br>>> Visit other Kitware open-source projects at<br>>> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>><br>>><br>><br>>> Please keep messages on-topic and check the CMake FAQ at:<br>
>> <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>><br>>><br>><br>>> Follow this link to subscribe/unsubscribe:<br>><br>>> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>>><br>><br>> Hi,<br>><br>> Try:<br>> set(CMAKE_LINKER g++1)<br>><br>> I think it should work (or something similar), but haven't tested..<br>><br>> Cheers,<br>><br>> Yngve<br>
><br>> _______________________________________________<br>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>> Please keep messages on-topic and check the CMake FAQ at:<br>> <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>><br><br></div>