summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongkyun, Son <dongkyun.s@samsung.com>2016-04-08 03:23:23 +0900
committerDongkyun, Son <dongkyun.s@samsung.com>2016-04-08 19:46:53 +0900
commit79f8dda891fc20539d65604d86aee8d0a26c0b98 (patch)
treeba9cbc4c909880c102c660c8c922911b6cc5b3ac
parent6c5cf8464b4c8e565e156128e2f29061cf1edb7f (diff)
downloadlibtool-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
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.sh14
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