summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2009-11-19 23:21:43 +0000
committerOscar Fuentes <ofv@wanadoo.es>2009-11-19 23:21:43 +0000
commit36dd7d5f5c294fbe55ad59f0537e5f1aba93f46a (patch)
treec382141b60d444f6fa5e5ec7bae30c85339a066e /llvm/lib/System
parentdd1c6198d4866bd4b89b0b5ee464a75a1bb3c189 (diff)
downloadbcm5719-llvm-36dd7d5f5c294fbe55ad59f0537e5f1aba93f46a.tar.gz
bcm5719-llvm-36dd7d5f5c294fbe55ad59f0537e5f1aba93f46a.zip
Use CMAKE_DL_LIBS instead of raw library name. Fixes bug 5536.
Patch by Tobias Grosser! llvm-svn: 89406
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/CMakeLists.txt b/llvm/lib/System/CMakeLists.txt
index 2945e33d5b1..a56a1f78bb7 100644
--- a/llvm/lib/System/CMakeLists.txt
+++ b/llvm/lib/System/CMakeLists.txt
@@ -42,5 +42,5 @@ add_llvm_library(LLVMSystem
)
if( BUILD_SHARED_LIBS AND NOT WIN32 )
- target_link_libraries(LLVMSystem dl)
+ target_link_libraries(LLVMSystem ${CMAKE_DL_LIBS})
endif()
OpenPOWER on IntegriCloud