[llvm-bugs] [Bug 51013] New: clang handles system librabry paths before LIBRARY_PATH
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 7 08:04:17 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51013
Bug ID: 51013
Summary: clang handles system librabry paths before
LIBRARY_PATH
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: marius.messerschmidt at googlemail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
When I try to link to a library that exists in both /usr/lib/ and a custom
location specified in the LIBRARY_PATH environment variable, clang always
chooses the system library (which causes linker errors as the system version is
to old and the headers from C_INCLUDE_PATH where choosen).
Other librabries, that do not exist in the system directories are found from
LIBRARY_PATH.
When building with GCC, the entries in LIBRARY_PATH are prefered over the
system libraries.
This is possibly related to https://bugs.llvm.org/show_bug.cgi?id=23877, but
the linker-step is affected as well.
I have also seen this bug report https://bugs.llvm.org/show_bug.cgi?id=16786
which seems to be fixed. However the issue does also happen with a custom-build
"clang 11.1.0"
--
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/20210707/0d98e412/attachment.html>
More information about the llvm-bugs
mailing list