mailing list of musl libc
 help / color / mirror / code / Atom feed
* ./configure compiler-rt patch
@ 2018-02-13 14:53 Matúš Olekšák
  2018-02-21  2:12 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Matúš Olekšák @ 2018-02-13 14:53 UTC (permalink / raw)
  To: musl


[-- 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: 399 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"

^ permalink raw reply	[flat|nested] 5+ messages in thread
* ./configure compiler-rt patch
@ 2018-02-06 21:16 Matúš Olekšák
  0 siblings, 0 replies; 5+ messages in thread
From: Matúš Olekšák @ 2018-02-06 21:16 UTC (permalink / raw)
  To: musl


[-- 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"

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-21 10:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 14:53 ./configure compiler-rt patch Matúš Olekšák
2018-02-21  2:12 ` Rich Felker
2018-02-21 10:30   ` Shiz
2018-02-21 10:58     ` Dmitry Golovin
  -- strict thread matches above, loose matches on Subject: below --
2018-02-06 21:16 Matúš Olekšák

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).