CMakeLists.txt
changeset 9082 22232029f074
parent 9081 39eb61ccbc82
child 9083 029f8d643dbe
     1.1 --- a/CMakeLists.txt	Sun Aug 17 13:15:09 2014 -0700
     1.2 +++ b/CMakeLists.txt	Sun Aug 17 13:15:45 2014 -0700
     1.3 @@ -340,6 +340,12 @@
     1.4    if(HAVE_GCC_WSHADOW)
     1.5      list(APPEND EXTRA_CFLAGS "-Wshadow")
     1.6    endif()
     1.7 +
     1.8 +  set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
     1.9 +  check_c_compiler_flag("" HAVE_NO_UNDEFINED)
    1.10 +  if(HAVE_NO_UNDEFINED)
    1.11 +    list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
    1.12 +  endif()
    1.13  endif()
    1.14  
    1.15  if(ASSEMBLY)