mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 01:44:37 +08:00
31 lines
795 B
Diff
31 lines
795 B
Diff
--- ltmain.sh.orig 2013-02-24 13:43:20.000000000 +0000
|
|
+++ ltmain.sh 2015-04-16 17:32:38.100000005 +0000
|
|
@@ -5800,6 +5800,11 @@
|
|
arg=$func_stripname_result
|
|
;;
|
|
|
|
+ -Wl,--as-needed)
|
|
+ deplibs="$deplibs $arg"
|
|
+ continue
|
|
+ ;;
|
|
+
|
|
-Wl,*)
|
|
func_stripname '-Wl,' '' "$arg"
|
|
args=$func_stripname_result
|
|
@@ -6161,6 +6166,15 @@
|
|
lib=
|
|
found=no
|
|
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|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
|
|
if test "$linkmode,$pass" = "prog,link"; then
|