mailing list of musl libc
 help / color / mirror / code / Atom feed
a8830280c82abdbfbc1f36d9134672c8d14debee blob 646 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
#!/bin/sh
cc="@CC@"
libc_inc="@INCDIR@"
libc_lib="@LIBDIR@"
thisdir="`cd "$(dirname "$0")"; pwd`"

# prevent clang from running the linker (and erroring) on no input.
sflags=
eflags=
for x ; do
    case "$x" in
        -l*) input=1 ;;
        -*) input= ;;
        *) input=1 ;;
    esac
    if test "$input" ; then
        sflags="-l-user-start"
        eflags="-lc -l-user-end"
        break
    fi
done

exec $cc \
    -B"$thisdir" \
    -fuse-ld=musl-clang \
    -rtlib=compiler-rt \
    -nostdinc \
    -nostartfiles \
    -isystem "$libc_inc" \
    -L-user-start \
    $sflags \
    "$@" \
    $eflags \
    -L"$libc_lib" \
    -L-user-end
debug log:

solving 51e0196 ...
found 51e0196 in https://inbox.vuxu.org/musl/1432918126-27741-1-git-send-email-hi@shiz.me/

applying [1/1] https://inbox.vuxu.org/musl/1432918126-27741-1-git-send-email-hi@shiz.me/
diff --git a/tools/musl-clang.in b/tools/musl-clang.in
new file mode 100644
index 0000000..51e0196

Checking patch tools/musl-clang.in...
Applied patch tools/musl-clang.in cleanly.

index at:
100644 a8830280c82abdbfbc1f36d9134672c8d14debee	tools/musl-clang.in

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