[lldb-dev] Compile failure on FreeBSD
Malea, Daniel
daniel.malea at intel.com
Fri May 31 14:13:38 PDT 2013
Hmm, so while that approach might work in this case, it won't be fun to
maintain this correct ordering in the long run. If you have a moment,
could you try the below fix instead? I think it's a more generic solution
to the problem at hand. If it works, I will commit post haste.
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 182960)
+++ CMakeLists.txt (working copy)
@@ -175,7 +175,7 @@
#endif()
if(LLDB_USED_LIBS)
- if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+ if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES
"FreeBSD")
target_link_libraries(${name} -Wl,--start-group ${LLDB_USED_LIBS}
-Wl,--end-group)
else()
target_link_libraries(${name} ${LLDB_USED_LIBS})
On 2013-05-31 4:38 PM, "Ed Maste" <emaste at freebsd.org> wrote:
>On 31 May 2013 16:20, Malea, Daniel <daniel.malea at intel.com> wrote:
>> As far as I can tell (by inspecting source/CMakeLists.txt)
>>lldbBreakpoint
>> (contains BreakpointIDList class) is required for linking liblldb.so. Is
>> it the lldbCommands library that's failing? If so, the fix might be as
>> simple as making lldbCommands depend on lldbBreakpoint.
>
>Yes, it's exactly this. I'm not sure how the dependency is expressed
>for CMake, but I found that swapping the order of lldbCommands and
>lldbBreakpoint in lldb/source/CMakeLists.txt worked around the issue,
>and liblldb.so links.
More information about the lldb-dev
mailing list