_ltmain_as-needed
=================================================================== Gbp-Pq: Name 99_ltmain_as-needed.patch
This commit is contained in:
parent
a1378fd4b6
commit
b13efcda83
14
ltmain.sh
14
ltmain.sh
|
@ -4716,6 +4716,11 @@ func_mode_link ()
|
||||||
arg=$func_stripname_result
|
arg=$func_stripname_result
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-Wl,--as-needed)
|
||||||
|
deplibs="$deplibs $arg"
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
|
||||||
-Wl,*)
|
-Wl,*)
|
||||||
func_stripname '-Wl,' '' "$arg"
|
func_stripname '-Wl,' '' "$arg"
|
||||||
args=$func_stripname_result
|
args=$func_stripname_result
|
||||||
|
@ -5067,6 +5072,15 @@ func_mode_link ()
|
||||||
lib=
|
lib=
|
||||||
found=no
|
found=no
|
||||||
case $deplib in
|
case $deplib in
|
||||||
|
-Wl,--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)
|
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
|
||||||
if test "$linkmode,$pass" = "prog,link"; then
|
if test "$linkmode,$pass" = "prog,link"; then
|
||||||
compile_deplibs="$deplib $compile_deplibs"
|
compile_deplibs="$deplib $compile_deplibs"
|
||||||
|
|
Loading…
Reference in New Issue