mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Matúš Olekšák" <oleksak.matus@gmail.com>
To: musl@lists.openwall.com
Subject: ./configure compiler-rt patch
Date: Tue, 6 Feb 2018 22:16:17 +0100	[thread overview]
Message-ID: <CAG6b3Eo2i9nbz4qja_Re9fzCEdLr7RJ09g+Dj-Dzns5kqZdLsg@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 305 bytes --]

Hi,
I have complete LLVM toolchain and I discovered that, detection of
compiler-rt is not working in ./configure. Because it is looking for
dynamic library compiler_rt but it doesn't exist. Instead it should ask
compiler about libgcc-file-name to get correct filename. I attached patch
to fix this issue.

[-- Attachment #1.2: Type: text/html, Size: 341 bytes --]

[-- Attachment #2: compiler-rt.patch --]
[-- Type: text/x-patch, Size: 519 bytes --]

--- a/configure
+++ b/configure
@@ -597,7 +597,8 @@
 
 # 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"

             reply	other threads:[~2018-02-06 21:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-06 21:16 Matúš Olekšák [this message]
2018-02-13 14:53 Matúš Olekšák
2018-02-21  2:12 ` Rich Felker
2018-02-21 10:30   ` Shiz
2018-02-21 10:58     ` Dmitry Golovin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG6b3Eo2i9nbz4qja_Re9fzCEdLr7RJ09g+Dj-Dzns5kqZdLsg@mail.gmail.com \
    --to=oleksak.matus@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).