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