Created
March 9, 2016 17:10
-
-
Save hasufell/a959c883ca616be26053 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 029198f..67d7863 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -1191,18 +1191,6 @@ if(UNIX AND NOT APPLE) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu89") | |
endif() | |
- # use ld.gold linker if available, could make optional | |
- execute_process( | |
- COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version | |
- ERROR_QUIET OUTPUT_VARIABLE LD_VERSION) | |
- if("${LD_VERSION}" MATCHES "GNU gold") | |
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fuse-ld=gold") | |
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=gold") | |
- else() | |
- message(STATUS "GNU gold linker isn't available, using the default system linker.") | |
- endif() | |
- unset(LD_VERSION) | |
- | |
# CLang is the same as GCC for now. | |
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang") | |
set(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment