mirror of https://gitee.com/openkylin/curl.git
Work around libtool --as-needed reordering bug
Origin: vendor Bug-Debian: http://bugs.debian.org/347650 Forwarded: not-needed Reviewed-by: Alessandro Ghedini <ghedo@debian.org> Last-Update: 2016-08-03 Gbp-Pq: Name 04_workaround_as_needed_bug.patch
This commit is contained in:
parent
2562018221
commit
8657b98686
14
ltmain.sh
14
ltmain.sh
|
@ -7312,6 +7312,11 @@ func_mode_link ()
|
|||
arg=$func_stripname_result
|
||||
;;
|
||||
|
||||
-Wl,--as-needed|-Wl,--no-as-needed)
|
||||
deplibs="$arg $deplibs"
|
||||
continue
|
||||
;;
|
||||
|
||||
-Wl,*)
|
||||
func_stripname '-Wl,' '' "$arg"
|
||||
args=$func_stripname_result
|
||||
|
@ -7703,6 +7708,15 @@ func_mode_link ()
|
|||
lib=
|
||||
found=false
|
||||
case $deplib in
|
||||
-Wl,--as-needed|-Wl,--no-as-needed)
|
||||
if test "$linkmode,$pass" = "prog,link"; then
|
||||
compile_deplibs="$deplib $compile_deplibs"
|
||||
finalize_deplibs="$deplib $finalize_deplibs"
|
||||
else
|
||||
deplibs="$deplib $deplibs"
|
||||
fi
|
||||
continue
|
||||
;;
|
||||
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
|
||||
|-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
|
||||
if test prog,link = "$linkmode,$pass"; then
|
||||
|
|
Loading…
Reference in New Issue