aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/toolchain.gcc-default.cmake
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-04-21 08:29:17 +0200
committerSven Gothel <[email protected]>2013-04-21 08:29:17 +0200
commit554b34927cd6a2e0c0ce227108ebf8521bcba889 (patch)
tree9b038eab0eae9fb1893c6570aa6237920a537c9c /cmake/toolchain.gcc-default.cmake
parentcc19a6716ff24522b8c705c3ab27f6df2098223f (diff)
Add 'cmake/glibc-compat-symbols.h' to force usage of minimal GLIBC symbols currently for memcpy only, used in our x86_32 and default gcc toolchain cmake file.
Note: JogAmp's minimum GLIBC is 2.4 due to '__stack_chk_fail' (stack overflow checking) GLIBC 2.4 - March 2006 - Standard for LSB 4.0, Used in SLES 10 We could add compile/link option '-fno-stack-protector', however stack protection seems reasonable and a pre 2006 distribution a bit too 'far fetched' for our multimedia bindings anyway.
Diffstat (limited to 'cmake/toolchain.gcc-default.cmake')
-rw-r--r--cmake/toolchain.gcc-default.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/toolchain.gcc-default.cmake b/cmake/toolchain.gcc-default.cmake
index 0f3c4ff6..3b2c9cfd 100644
--- a/cmake/toolchain.gcc-default.cmake
+++ b/cmake/toolchain.gcc-default.cmake
@@ -1,5 +1,10 @@
# For normal gcc compilation, but use static-libgcc
+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)