diff options
author | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-04-08 03:23:23 +0900 |
---|---|---|
committer | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-04-08 19:46:53 +0900 |
commit | 79f8dda891fc20539d65604d86aee8d0a26c0b98 (patch) | |
tree | ba9cbc4c909880c102c660c8c922911b6cc5b3ac | |
parent | 6c5cf8464b4c8e565e156128e2f29061cf1edb7f (diff) | |
download | libtool-accepted/tizen_3.0.m2_base.tar.gz libtool-accepted/tizen_3.0.m2_base.tar.bz2 libtool-accepted/tizen_3.0.m2_base.zip |
Apply ltmain-asneeded.patchsubmit/tizen_base/20160414.032042submit/tizen_3.0_base/20161028.062323submit/tizen_3.0.m2_base/20170104.073748accepted/tizen/base/20160415.195605accepted/tizen/3.0/base/20161028.103034accepted/tizen/3.0.m2/base/20170104.081907tizen_3.0.m2_basetizen_3.0accepted/tizen_3.0.m2_base
Patch libtool so that --as-needed works with shared libraries
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=347650
Change-Id: I2558313ca940d1d8f5a8cfb57117a7ab8cfc9afe
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
-rw-r--r-- | libltdl/config/ltmain.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libltdl/config/ltmain.sh b/libltdl/config/ltmain.sh index 63ae69d..0fe7413 100644 --- a/libltdl/config/ltmain.sh +++ b/libltdl/config/ltmain.sh @@ -5800,6 +5800,11 @@ func_mode_link () arg=$func_stripname_result ;; + -Wl,--as-needed) + deplibs="$deplibs $arg" + continue + ;; + -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result @@ -6160,6 +6165,15 @@ func_mode_link () 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 |