Browse Source

CMake: Use -Wl,--as-needed if supported by the linker.

pull/1/head
Daniel Scharrer 14 years ago
parent
commit
8bbb63346b
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -85,6 +85,9 @@ else()
add_cxxflag("-Wno-unused-function")
endif()
# Because i'm lazy
add_cxxflag("-Wl,--as-needed")
check_symbol_exists(isatty "unistd.h" HAVE_ISATTY)
check_symbol_exists(ioctl "sys/ioctl.h" HAVE_IOCTL)

Loading…
Cancel
Save