]> wolfpit.net Git - tool/Arch-pacman/.git/blob - build-aux/ltmain-asneeded.patch
Patch ltmain on autoreconf
[tool/Arch-pacman/.git] / build-aux / ltmain-asneeded.patch
1 --- ltmain.sh.orig 2013-06-26 14:31:53.472627840 +1000
2 +++ ltmain.sh 2013-06-26 14:30:56.137038936 +1000
3 @@ -5800,6 +5800,14 @@
4 arg=$func_stripname_result
5 ;;
6
7 + -Wl,*--as-needed*)
8 + deplibs="$deplibs $wl--as-needed"
9 + ;;
10 +
11 + -Wl,*--no-as-needed*)
12 + deplibs="$deplibs $wl--no-as-needed"
13 + ;;
14 +
15 -Wl,*)
16 func_stripname '-Wl,' '' "$arg"
17 args=$func_stripname_result
18 @@ -6160,6 +6168,15 @@
19 lib=
20 found=no
21 case $deplib in
22 + -Wl,--as-needed|-Wl,--no-as-needed)
23 + if test "$linkmode,$pass" = "prog,link"; then
24 + compile_deplibs="$deplib $compile_deplibs"
25 + finalize_deplibs="$deplib $finalize_deplibs"
26 + else
27 + deplibs="$deplib $deplibs"
28 + fi
29 + continue
30 + ;;
31 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
32 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
33 if test "$linkmode,$pass" = "prog,link"; then