mailing list of musl libc
 help / color / mirror / code / Atom feed
dfa194b24323b0479616189ff6fbf0149f37f9fc blob 896 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
36
37
38
39
40
41
42
43
44
 
#!/bin/sh
cc=clang
libc_lib="@LIBDIR@"
ldso="@LDSO@"
cleared=
shared=
userlinkdir=
userlink=

for x ; do
    test "$cleared" || set -- ; cleared=1

    case "$x" in
        -L-user-start)
            userlinkdir=1
            ;;
        -L-user-end)
            userlinkdir=
            ;;
        -L*)
            test "$userlinkdir" && set -- "$@" "$x"
            ;;
        -l-user-start)
            userlink=1
            ;;
        -l-user-end)
            userlink=
            ;;
        -l*)
            test "$userlink" && set -- "$@" "$x"
            ;;
        -shared)
            shared=1
            set -- "$@" -shared
            ;;
        *)
            set -- "$@" "$x"
            ;;
    esac
done

set -- "$@" -lc -dynamic-linker "$ldso"
test "$shared" || set -- "$libc_lib/Scrt1.o" "$libc_lib/crti.o" "$@" "$libc_lib/crtn.o"
exec $($cc -print-prog-name=ld) -nostdlib "$@"
debug log:

solving 34f5054 ...
found 34f5054 in https://inbox.vuxu.org/musl/1432925022-28318-1-git-send-email-hi@shiz.me/

applying [1/1] https://inbox.vuxu.org/musl/1432925022-28318-1-git-send-email-hi@shiz.me/
diff --git a/tools/ld.musl-clang.in b/tools/ld.musl-clang.in
new file mode 100644
index 0000000..34f5054

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

index at:
100644 dfa194b24323b0479616189ff6fbf0149f37f9fc	tools/ld.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).