Fix building with in-tree libc++abi on FreeBSD

Differential Revision: http://reviews.llvm.org/D4743

llvm-svn: 214541
This commit is contained in:
Viktor Kutuzov 2014-08-01 19:23:15 +00:00
parent e64bd7fea2
commit 47b6f16f63

View File

@ -461,6 +461,7 @@ else(UNIX)
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
if (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,origin")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,origin")
endif()
endif(NOT DEFINED CMAKE_INSTALL_RPATH)
endif()