[llvm-bugs] [Bug 34024] New: CMAKE_EXE_LINKER_FLAGS is used in the compiler-rt feature checks
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 1 11:59:47 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34024
Bug ID: 34024
Summary: CMAKE_EXE_LINKER_FLAGS is used in the compiler-rt
feature checks
Product: Build scripts
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: filcab at gmail.com, llvm-bugs at lists.llvm.org
This means that one cannot build llvm programs static by adding -static to
CMAKE_EXE_LINKER_FLAGS.
The issue is that the various check_library_exists will try to link and
executable and fail with undefined references to _Unwind* because libgcc_eh.a
is not being linked in.
The test is incorrect. We are trying to build a *library*, we should not be
using CMAKE_EXE_LINKER_FLAGS.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170801/9a0d164c/attachment.html>
More information about the llvm-bugs
mailing list