llvm-project/llvm/cmake
Rainer Orth 415b1e872c [CMake] Enable -z defs on Solaris
I wondered why I hadn't seen the link failures in D130571
<https://reviews.llvm.org/D130571> on Solaris/sparcv9 and found that
Solaris, unlike Linux, doesn't use `-Wl,-z,defs` when linking shared
objects.  The three affected shared objects indeed have undefined
references to several 64-bit atomics.

This patch will expose such issues in the future by defaulting to
`-Wl,-z,defs` on Solaris, as recommended in `ld(1)`.

Tested on `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D130572
2022-07-27 12:33:51 +02:00
..
modules [CMake] Enable -z defs on Solaris 2022-07-27 12:33:51 +02:00
platforms [cmake] Use CMAKE_TRY_COMPILE_PLATFORM_VARIABLES 2022-03-08 15:25:03 -08:00
README
config-ix.cmake [CMake] Stop zstd find_package warnings 2022-07-22 19:06:54 +00:00
config.guess [PowerPC] Add the LLVM triple for powerpcle [1/5] 2021-01-02 12:17:22 -06:00
dummy.cpp
nsis_icon.ico
nsis_logo.bmp
unwind.h [ExecutionEngine] Check for libunwind before calling __register_frame 2021-08-15 13:35:53 +01:00

README

See docs/CMake.html for instructions on how to build LLVM with CMake.