NetBSD.cmake 778 B

123456789101112131415
  1. set(CMAKE_DL_LIBS "")
  2. set(CMAKE_C_COMPILE_OPTIONS_PIC "-fPIC")
  3. set(CMAKE_C_COMPILE_OPTIONS_PIE "-fPIE")
  4. # PIE link options are managed in Compiler/<compiler>.cmake file
  5. set(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
  6. set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
  7. set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
  8. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
  9. set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty
  10. set(CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN "\$ORIGIN")
  11. set(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
  12. set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
  13. set(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
  14. include(Platform/UnixPaths)