QNX.cmake 655 B

12345678910111213141516171819
  1. set(QNXNTO 1)
  2. include(Platform/GNU)
  3. unset(CMAKE_LIBRARY_ARCHITECTURE_REGEX)
  4. set(CMAKE_DL_LIBS "")
  5. # Shared libraries with no builtin soname may not be linked safely by
  6. # specifying the file path.
  7. set(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
  8. # Initialize C link type selection flags. These flags are used when
  9. # building a shared library, shared module, or executable that links
  10. # to other libraries to select whether to use the static or shared
  11. # versions of the libraries.
  12. foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
  13. set(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
  14. set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
  15. endforeach()