From: Pavel Labath Date: Tue, 18 Oct 2016 10:46:45 +0000 (+0000) Subject: Fixup r284466 - try to unbreak NetBSD X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33186424666318557e6a3b427201b1f1b2c1a231;p=platform%2Fupstream%2Fllvm.git Fixup r284466 - try to unbreak NetBSD NetBSD does not have getopt as well - we need to apply the workaround there too. FreeBSD seems to be fine though. llvm-svn: 284469 --- diff --git a/lldb/tools/driver/CMakeLists.txt b/lldb/tools/driver/CMakeLists.txt index b4b6706..5d7f79b 100644 --- a/lldb/tools/driver/CMakeLists.txt +++ b/lldb/tools/driver/CMakeLists.txt @@ -20,9 +20,10 @@ if ( LLDB_CAN_USE_DEBUGSERVER ) endif() target_link_libraries(lldb liblldb) -if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) - # Windows does not have getopt support, so it relies on the one provided by - # liblldb. However, getopt is not a part of the liblldb interfact, so we have +if ((CMAKE_SYSTEM_NAME MATCHES "Windows") OR + (CMAKE_SYSTEM_NAME MATCHES "NetBSD" )) + # These targets do not have getopt support, so they rely on the one provided by + # liblldb. However, getopt is not a part of the liblldb interface, so we have # to link against the constituent libraries manually. Note that this is # extremely scary as it introduces ODR violations, and it should go away as # soon as possible.