[Pkg-cli-libs-commits] r3487 - in /packages/njb-sharp/trunk/debian: changelog patches/99_ltmain_as-needed.patch rules
slomo at users.alioth.debian.org
slomo at users.alioth.debian.org
Tue Dec 4 13:30:40 UTC 2007
Author: slomo
Date: Tue Dec 4 13:30:40 2007
New Revision: 3487
URL: http://svn.debian.org/wsvn/pkg-cli-libs/?sc=1&rev=3487
Log:
* debian/rules:
+ Use --as-needed when linking to get less dependencies.
* debian/patches/99_ltmain_as-needed.dpatch:
+ Patch used in many Gnome package to reorder the linking
parameters so --as-needed is actually used.
Added:
packages/njb-sharp/trunk/debian/patches/99_ltmain_as-needed.patch
Modified:
packages/njb-sharp/trunk/debian/changelog
packages/njb-sharp/trunk/debian/rules
Modified: packages/njb-sharp/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/njb-sharp/trunk/debian/changelog?rev=3487&op=diff
==============================================================================
--- packages/njb-sharp/trunk/debian/changelog (original)
+++ packages/njb-sharp/trunk/debian/changelog Tue Dec 4 13:30:40 2007
@@ -2,6 +2,11 @@
* debian/control:
+ Updated to use my debian.org mail address
+ * debian/rules:
+ + Use --as-needed when linking to get less dependencies.
+ * debian/patches/99_ltmain_as-needed.dpatch:
+ + Patch used in many Gnome package to reorder the linking
+ parameters so --as-needed is actually used.
-- Sebastian Dröge <slomo at debian.org> Mon, 8 Jan 2007 01:08:26 +0100
Added: packages/njb-sharp/trunk/debian/patches/99_ltmain_as-needed.patch
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/njb-sharp/trunk/debian/patches/99_ltmain_as-needed.patch?rev=3487&op=file
==============================================================================
--- packages/njb-sharp/trunk/debian/patches/99_ltmain_as-needed.patch (added)
+++ packages/njb-sharp/trunk/debian/patches/99_ltmain_as-needed.patch Tue Dec 4 13:30:40 2007
@@ -1,0 +1,32 @@
+Index: nautilus-2.18.1/ltmain.sh
+===================================================================
+--- nautilus-2.18.1.orig/ltmain.sh 2006-07-13 09:12:13.000000000 +0200
++++ nautilus-2.18.1/ltmain.sh 2007-06-06 23:36:38.899175453 +0200
+@@ -1784,6 +1784,11 @@
+ 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=
+@@ -2124,6 +2129,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)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
Modified: packages/njb-sharp/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/njb-sharp/trunk/debian/rules?rev=3487&op=diff
==============================================================================
--- packages/njb-sharp/trunk/debian/rules (original)
+++ packages/njb-sharp/trunk/debian/rules Tue Dec 4 13:30:40 2007
@@ -5,12 +5,14 @@
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/utils.mk
+LDFLAGS += -Wl,--as-needed
+
common-binary-post-install-arch:: list-missing
export MONO_SHARED_DIR=$(CURDIR)
common-binary-predeb-arch::
- dh_clideps
+ dh_clideps -d
install/libnjb-cil::
find debian/ -type f -name "*.dll" -or -name "*.mdb" -or -name "*.cs" -or -name "*.config" | xargs chmod -x
More information about the Pkg-cli-libs-commits
mailing list