mailing list of musl libc
 help / color / mirror / code / Atom feed
03a41d76ff02c4efa3a875eb22ce0bfce7c0bbd3 blob 1141 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
45
46
47
48
49
50
51
52
 
#!/bin/sh
cc="@CC@"
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=
            ;;
        crtbegin*.o|crtend*.o)
            set -- "$@" $($cc -print-file-name=$x)
            ;;
        -lgcc|-lgcc_eh)
            file=lib${x#-l}.a
            set -- "$@" $($cc -print-file-name=$file)
            ;;
        -l*)
            test "$userlink" && set -- "$@" "$x"
            ;;
        -shared)
            shared=1
            set -- "$@" -shared
            ;;
        -sysroot=*|--sysroot=*)
            ;;
        *)
            set -- "$@" "$x"
            ;;
    esac
done

lgcc=$($cc -print-file-name=libgcc.a)
exec $($cc -print-prog-name=ld) -nostdlib "$@" --as-needed $lgcc --no-as-needed -lc $lgcc -dynamic-linker "$ldso"
debug log:

solving 03a41d7 ...
found 03a41d7 in https://inbox.vuxu.org/musl/20160223225820.623b7e5e9aac3a1fa26dd5c4@dimakrasner.com/
found bb6cbaf in https://inbox.vuxu.org/musl/20160223222120.253fa62ba0205776c235c22a@dimakrasner.com/
found 93763d6 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 93763d6b2cff585323477b30193cb933e0101623	tools/ld.musl-clang.in

applying [1/2] https://inbox.vuxu.org/musl/20160223222120.253fa62ba0205776c235c22a@dimakrasner.com/
diff --git a/tools/ld.musl-clang.in b/tools/ld.musl-clang.in
index 93763d6..bb6cbaf 100644


applying [2/2] https://inbox.vuxu.org/musl/20160223225820.623b7e5e9aac3a1fa26dd5c4@dimakrasner.com/
diff --git a/tools/ld.musl-clang.in b/tools/ld.musl-clang.in
index bb6cbaf..03a41d7 100644

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

index at:
100644 03a41d76ff02c4efa3a875eb22ce0bfce7c0bbd3	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).