diff options
Diffstat (limited to 'Modules/Platform/NetBSD.cmake')
-rw-r--r-- | Modules/Platform/NetBSD.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Platform/NetBSD.cmake b/Modules/Platform/NetBSD.cmake new file mode 100644 index 0000000..e9c9ab2 --- /dev/null +++ b/Modules/Platform/NetBSD.cmake @@ -0,0 +1,8 @@ +IF(EXISTS /usr/include/dlfcn.h) + SET(CMAKE_DL_LIBS "") + SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic + SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared + SET(CMAKE_SHARED_LIBRARY_LINK_FLAGS "") # +s, flag for exe link to use shared lib + SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-Wl,-rpath,") # -rpath + SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":") # : or empty +ENDIF(EXISTS /usr/include/dlfcn.h) |