Workaround ld.gold failing with msgfmt
authorCampbell Barton <ideasman42@gmail.com>
Tue, 5 May 2015 17:23:20 +0000 (03:23 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 5 May 2015 17:23:20 +0000 (03:23 +1000)
intern/locale/CMakeLists.txt

index 5d933f326f76fba1e9e387ade66d963adea0b95e..6896702fcbf99291ed6bd95c288b65e3262d4656 100644 (file)
@@ -63,6 +63,12 @@ blender_add_lib(bf_intern_locale "${SRC}" "${INC}" "${INC_SYS}")
 
 # -----------------------------------------------------------------------------
 # Build msgfmt executable
+
+if(CMAKE_COMPILER_IS_GNUCC)
+       # workaroud ld.gold linker bug
+       string(REPLACE "-fuse-ld=gold" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+endif()
+
 set(MSFFMT_SRC
        msgfmt.cc
 )