Linux-GNU.cmake 511 B

123456789101112131415
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__LINUX_COMPILER_GNU)
  5. return()
  6. endif()
  7. set(__LINUX_COMPILER_GNU 1)
  8. macro(__linux_compiler_gnu lang)
  9. # We pass this for historical reasons. Projects may have
  10. # executables that use dlopen but do not set ENABLE_EXPORTS.
  11. set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic")
  12. endmacro()