From 3d99266b5e8fc6374a9d930f3ae9d444ffebb11e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 26 Oct 2012 16:30:07 -0400 Subject: [PATCH] add support for detecting pcc's compiler runtime in old versions of pcc, the directory containing libpcc.a was not in the library path, and other options like -print-file-name may have been needed to locate it. however, -print-file-name itself seems to have been added around the same time that the directory was added to the search path, and moreover, I see no evidence that older versions of pcc are capable of building a working musl shared library. thus, it seems reasonable to just test whether -lpcc is accepted. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 327734ae..19c241e6 100755 --- a/configure +++ b/configure @@ -299,6 +299,7 @@ shared=no # Find compiler runtime library test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh test -z "$LIBCC" && tryldflag LIBCC -lcompiler_rt +test -z "$LIBCC" && tryldflag LIBCC -lpcc printf "using compiler runtime libraries: %s\n" "$LIBCC" -- 2.25.1