diff options
author | Matúš Olekšák <oleksak.matus@gmail.com> | 2018-02-21 12:03:04 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-02-21 12:07:16 -0500 |
commit | fcf24b9f388d650a92375079461198f5db3ed88a (patch) | |
tree | 76c1955d657776bf52eeff826673feeaae23d73c | |
parent | 6d6102427d8d5450bd28788c792f97ef90cce274 (diff) | |
download | musl-fcf24b9f388d650a92375079461198f5db3ed88a.tar.gz musl-fcf24b9f388d650a92375079461198f5db3ed88a.tar.xz musl-fcf24b9f388d650a92375079461198f5db3ed88a.zip |
fix detection of LIBCC for compiler-rt with clang
Maintainer's note: at one point, -lcompiler_rt apparently worked, and may still work and be preferable if one has manually installed the library in a public lib directory. but with current versions of clang, the full pathname to the library file is needed. the original patch removed the -lcompiler_rt check; I have left it in place in case there are users depending on it, and since, when it does work, it's preferable so as not to code a dependency on the specific compiler version and paths in config.mak.
-rwxr-xr-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure index 501a7219..1e59c461 100755 --- a/configure +++ b/configure @@ -598,6 +598,8 @@ tryldflag LDFLAGS_AUTO -Wl,-Bsymbolic-functions # Find compiler runtime library test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh test -z "$LIBCC" && tryldflag LIBCC -lcompiler_rt +test -z "$LIBCC" && try_libcc=`$CC -print-libgcc-file-name 2>/dev/null` \ + && tryldflag LIBCC "$try_libcc" test -z "$LIBCC" && try_libcc=`$CC -print-file-name=libpcc.a 2>/dev/null` \ && tryldflag LIBCC "$try_libcc" printf "using compiler runtime libraries: %s\n" "$LIBCC" |