From 389ae1f767bfad6116e21306fc3cdf89a4cbcc0a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 13 Sep 2013 19:08:52 +0200 Subject: Add clang cmake.toolchain macros; Fix glibc-compat-symbols.h to work w/ clang (nop) --- cmake/toolchain.clang-default.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cmake/toolchain.clang-default.cmake (limited to 'cmake/toolchain.clang-default.cmake') diff --git a/cmake/toolchain.clang-default.cmake b/cmake/toolchain.clang-default.cmake new file mode 100644 index 00000000..693f55c8 --- /dev/null +++ b/cmake/toolchain.clang-default.cmake @@ -0,0 +1,13 @@ +# For normal clang compilation + +# set(CMAKE_C_FLAGS "-include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h") + +set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags") + +# set(LINKER_FLAGS "-static-libgcc") + +set(CMAKE_SHARED_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE) +set(CMAKE_MODULE_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE) +set(CMAKE_EXE_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE) + -- cgit v1.2.3