This is an archive of the discontinued LLVM Phabricator instance.

Fix libdl linking for libclang in standalone mode
ClosedPublic

Authored by thieta on Jun 8 2020, 6:22 AM.

Details

Summary

As noted in https://reviews.llvm.org/D80492 that change broke standalone builds of clang. This reverts the old behavior of libdl linking when in standalone mode.

As a note I think it would be safe to just do:

list(APPEND LIBS ${CMAKE_DL_LIBS})

But I opted for the pragmatic fix this time. Let me know if you think we should try that instead.

Diff Detail

Event Timeline

thieta created this revision.Jun 8 2020, 6:22 AM
lebedev.ri accepted this revision.Jun 8 2020, 12:34 PM

Thank you!

<LebedevRI> mceier: https://reviews.llvm.org/D81385
<mceier> LebedevRI: clang built successfully with that patch

But consider waiting for @beanz

This revision is now accepted and ready to land.Jun 8 2020, 12:34 PM

Ping. It'd be nice to have this fixed.

Ping @beanz - I think people would like this to be included before the 11 branch.

mstorsjo added a subscriber: hans.Jul 20 2020, 12:43 PM

Ping @beanz

@hans - I think this is something that would be wanted to have fixed in the release branch (it's a regression for certain build configurations, afaik) - the fix awaits an ack from @beanz.

hans added a comment.Jul 21 2020, 7:15 AM

Ping @beanz

@hans - I think this is something that would be wanted to have fixed in the release branch (it's a regression for certain build configurations, afaik) - the fix awaits an ack from @beanz.

Thanks, I've put it on my list. It needs to land first though :)

Ping @beanz

@hans - I think this is something that would be wanted to have fixed in the release branch (it's a regression for certain build configurations, afaik) - the fix awaits an ack from @beanz.

Thanks, I've put it on my list. It needs to land first though :)

I think that was enough of a headroom to provide feedback.
Please proceed to commit, there's always post-commit review.

This revision was automatically updated to reflect the committed changes.
hans added a comment.Jul 24 2020, 2:50 AM

Pushed to 11.x as 833f8c958601bb640ba6a25d627c1dc58dad14d2. Please let me know if there are any follow-ups.