12e5f3cccf428feafc4dcd22e73213045469897d
[platform/upstream/cmake.git] / Modules / Platform / DragonFly.cmake
1 # DragonFly BSD was forked from FreeBSD and is still very close to it
2 # http://www.dragonflybsd.org
3 # see http://archive.netbsd.se/?ml=dfbsd-users&a=2007-07&m=4678361
4
5 include(Platform/FreeBSD)
6
7 # DragonFly BSD requires -z origin to enable $ORIGIN expansion in RPATH.
8 # This is not required for FreeBSD since 10.2-RELEASE.
9 set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-z,origin,-rpath,")