Browse Source

-static-* are linker flags, test them as such

Fixes ARM build where CMake passed -static-libgcc, but not
-static-libstdc++ to the linker, resulting in undefined references.
coverity_scan
Daniel Scharrer 13 years ago
parent
commit
7242478c1b
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -50,8 +50,8 @@ endif()
if(USE_STATIC_LIBS)
if(NOT MSVC)
add_cxxflag("-static-libgcc")
add_cxxflag("-static-libstdc++")
add_ldflag("-static-libgcc")
add_ldflag("-static-libstdc++")
endif()
set(LZMA_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_LIBS ON)

Loading…
Cancel
Save