aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/PackedVersion.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2023-09-07 19:14:55 +0200
committerGitHub <noreply@github.com>2023-09-07 19:14:55 +0200
commit1e6b0df3503567488e7df2d574c90f8f31a001a2 (patch)
tree555c6d380171595b6be7da6b6a9b6f7fb56cdd28 /llvm/lib/TextAPI/PackedVersion.cpp
parentf94f85348d75b2c5b28fa1f1d6da8e9c477ab58d (diff)
downloadllvm-1e6b0df3503567488e7df2d574c90f8f31a001a2.zip
llvm-1e6b0df3503567488e7df2d574c90f8f31a001a2.tar.gz
llvm-1e6b0df3503567488e7df2d574c90f8f31a001a2.tar.bz2
[Driver] Fix linking with -lm on Solaris (#65632)
As noticed in D158846, the Solaris driver deviates from other targets in that it links every executable with `-lm`, but doesn't for shared objects. For C code, this is unnecessary, while for C++ `libm` is always needed, even for shared objects. This patch fixes this by following the `Gnu.cpp` precedent. It adjusts the `solaris-ld.c` test accordingly, adding some more tests. Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and `x86_64-pc-linux-gnu`.
Diffstat (limited to 'llvm/lib/TextAPI/PackedVersion.cpp')
0 files changed, 0 insertions, 0 deletions