[Pkg-e-commits] [SCM] Enlightenment DR17 graphical layout and animation library branch, master, updated. debian/0.5.0.042-1-3-gf710952
Jan Luebbe
jluebbe at debian.org
Sun May 4 16:48:58 UTC 2008
The following commit has been merged in the master branch:
commit 57e82bd2ed8ca5bfc5383242405969c4945e55f5
Author: Jan Luebbe <jluebbe at debian.org>
Date: Sun May 4 18:33:56 2008 +0200
Refresh patches and enable -Wl,--as-needed
diff --git a/debian/patches/0001-Add-libtool-Wl-as-needed-reordering-workaround.patch b/debian/patches/0001-Add-libtool-Wl-as-needed-reordering-workaround.patch
new file mode 100644
index 0000000..cc1127d
--- /dev/null
+++ b/debian/patches/0001-Add-libtool-Wl-as-needed-reordering-workaround.patch
@@ -0,0 +1,44 @@
+From 669e6791bb63338470b49e335f4693994d7d008e Mon Sep 17 00:00:00 2001
+From: Jan Luebbe <jluebbe at debian.org>
+Date: Sun, 4 May 2008 18:23:25 +0200
+Subject: [PATCH] Add libtool -Wl,--as-needed reordering workaround
+
+---
+ ltmain.sh | 14 ++++++++++++++
+ 1 files changed, 14 insertions(+), 0 deletions(-)
+
+diff --git a/ltmain.sh b/ltmain.sh
+index 2160ef7..4176a39 100644
+--- a/ltmain.sh
++++ b/ltmain.sh
+@@ -1794,6 +1794,11 @@ EOF
+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+ ;;
+
++ -Wl,--as-needed)
++ deplibs="$deplibs $arg"
++ continue
++ ;;
++
+ -Wl,*)
+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+ arg=
+@@ -2137,6 +2142,15 @@ EOF
+ 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"
+--
+1.5.5.1
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2ddc315
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Add-libtool-Wl-as-needed-reordering-workaround.patch
diff --git a/debian/rules b/debian/rules
index 61089e7..0fcd2d1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@ include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+LDFLAGS += -Wl,--as-needed
+
build/libedje-doc::
cd $(DEB_SRCDIR) && doxygen
--
Enlightenment DR17 graphical layout and animation library
More information about the Pkg-e-commits
mailing list