Author: labath Date: Tue Oct 18 05:46:45 2016 New Revision: 284469 URL: http://llvm.org/viewvc/llvm-project?rev=284469&view=rev Log: 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. Modified: lldb/trunk/tools/driver/CMakeLists.txt Modified: lldb/trunk/tools/driver/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/CMakeLists.txt?rev=284469&r1=284468&r2=284469&view=diff ============================================================================== --- lldb/trunk/tools/driver/CMakeLists.txt (original) +++ lldb/trunk/tools/driver/CMakeLists.txt Tue Oct 18 05:46:45 2016 @@ -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. _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits