cmake: add (commented out) lines for static libc
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 30 Sep 2015 10:43:35 +0000 (13:43 +0300)
committerTomi Valkeinen <tomi.valkeinen@iki.fi>
Thu, 1 Oct 2015 16:40:22 +0000 (19:40 +0300)
CMakeLists.txt

index 6a638e24a98cdfe69e38c8f73d07624bab54f1a2..433418e1414b6a1d34aa4c043c8cae06a5497090 100644 (file)
@@ -12,6 +12,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
 
 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
 
+# static link libc
+# set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
+
 find_package(PkgConfig REQUIRED)
 pkg_check_modules(LIBDRM libdrm REQUIRED)