Hi everyone, We use CMake to create the build files for our C++ research code. We compile all source files directly into one executable and then link statically to a couple of external libraries.
However, I noticed that CMake adds the '-fPIE' flag to the compilation flags without me asking for it. When I set up a simple dummy C++ CMake project, no '-fPIE' was added to the compilation flags. Do you know what could cause this flag to be added? As far as I know, the -fPIE/-fPIC flags require one additional register to be used for the code locations, thus rendering the code slightly less efficient. Regards, Michael -- Michael Schlottke SimLab Highly Scalable Fluids & Solids Engineering Jülich Aachen Research Alliance (JARA-HPC) RWTH Aachen University Wüllnerstraße 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: [email protected]<mailto:[email protected]> Web: http://www.jara.org/jara-hpc
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
