NetBSD.cmake 777 B

123456789101112131415
  1. IF(EXISTS /usr/include/dlfcn.h)
  2. SET(CMAKE_DL_LIBS "")
  3. SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
  4. SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
  5. SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
  6. SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
  7. SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty
  8. SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
  9. SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
  10. SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
  11. SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
  12. SET(CMAKE_EXE_EXPORTS_CXX_FLAG "-Wl,--export-dynamic")
  13. ENDIF(EXISTS /usr/include/dlfcn.h)
  14. INCLUDE(Platform/UnixPaths)