| Index: gstreamer0.10-0.10.31.2/ltmain.sh |
| =================================================================== |
| --- gstreamer0.10-0.10.31.2.orig/ltmain.sh 2011-01-06 19:14:25.000000000 +0100 |
| +++ gstreamer0.10-0.10.31.2/ltmain.sh 2011-01-08 17:05:29.823838983 +0100 |
| @@ -4716,6 +4716,11 @@ |
| arg=$func_stripname_result |
| ;; |
| |
| + -Wl,--as-needed) |
| + deplibs="$deplibs $arg" |
| + continue |
| + ;; |
| + |
| -Wl,*) |
| func_stripname '-Wl,' '' "$arg" |
| args=$func_stripname_result |
| @@ -5070,6 +5075,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) |
| if test "$linkmode,$pass" = "prog,link"; then |
| compile_deplibs="$deplib $compile_deplibs" |