[PATCH] [Commented On] D25008: [libcxx] Include unwinder library in the linker script

Michał Górny via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 29 23:26:35 PDT 2016


mgorny added a comment.

Side note: I see that gcc is solving similar problem via .spec files for its libraries, e.g.:

  $ cat /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/libgomp.spec 
  # This spec file is read by gcc when linking.  It is used to specify the
  # standard libraries we need in order to link with libgomp.
  *link_gomp: -lgomp %{static: -ldl }

If we wanted to be more portable, I guess we could establish something similar for clang, and install such a file along with libc++. However, I don't know if that's a problem.


https://reviews.llvm.org/D25008





More information about the cfe-commits mailing list