[LLVMbugs] [Bug 19745] New: '--no-add-needed' is added to the linker flags for all versions of RHEL
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 14 12:45:29 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19745
Bug ID: 19745
Summary: '--no-add-needed' is added to the linker flags for all
versions of RHEL
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: mlampe0 at googlemail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Line 2412 of ToolChains.cpp
if (IsRedhat(Distro))
ExtraOpts.push_back("--no-add-needed");
This is incorrect for RHEL5 which defaults to and needs '-add-needed'.
As the flag ist correct for RHEL6, I propose changing this to:
if (IsRedhat(Distro) && Distro == RHEL6))
ExtraOpts.push_back("--no-add-needed");
--
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/20140514/2d6a4f9c/attachment.html>
More information about the llvm-bugs
mailing list