aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/toolchain.clang-default.cmake
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-09-13 19:08:52 +0200
committerSven Gothel <[email protected]>2013-09-13 19:08:52 +0200
commit389ae1f767bfad6116e21306fc3cdf89a4cbcc0a (patch)
tree6f18d64a576a403a41bb82c09f3d63f78cc470b9 /cmake/toolchain.clang-default.cmake
parent0df1e1ad30a0990591be4779ccc3d0034a3b33e5 (diff)
Add clang cmake.toolchain macros; Fix glibc-compat-symbols.h to work w/ clang (nop)
Diffstat (limited to 'cmake/toolchain.clang-default.cmake')
-rw-r--r--cmake/toolchain.clang-default.cmake13
1 files changed, 13 insertions, 0 deletions
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)
+