[SCM] WebKit Debian packaging branch, debian/unstable, updated. 0+svn29752-1-1645-gd3fe478

Mike Hommey glandium at debian.org
Sat Apr 12 19:56:56 UTC 2008


The following commit has been merged in the debian/unstable branch:
commit a9c4fe81b83d9e62ac76a9b645a87746e14f98f0
Author: Mike Hommey <glandium at debian.org>
Date:   Sat Apr 12 19:52:32 2008 +0200

    Ugly hack to add -Wl,--as-needed
    
    When using libtool, adding -Wl,--as-needed to LDFLAGS leads to this flag
    being added at the end of the linker command line, such that it is made
    meaningless. This (ugly) hack makes sure the flag is always in first
    position.
    
    Fortunately, gcc allows linker flags to be passed even when not linking.

diff --git a/debian/changelog b/debian/changelog
index 67771c6..a0ca641 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,8 @@ webkit (0~svn31841-1) UNRELEASED; urgency=low
     Qt homonym lie elsewhere.
   * debian/libwebkit-1.0-1.preinst, debian/libwebkit-1.0-1.postrm: Don't
     divert anything, since we don't clash with older files anymore.
+  * debian/rules: Ugly hack to add -Wl,--as-needed without it getting reordered
+    by libtool.
 
  -- Mike Hommey <glandium at debian.org>  Sat, 12 Apr 2008 11:47:32 +0200
 
diff --git a/debian/rules b/debian/rules
index 1c88ad3..43f70a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,8 @@ build-stamp:
 	cd build && \
 	CFLAGS="$(CFLAGS)" \
 	CXXFLAGS="$(CFLAGS)" \
+	CC="gcc -Wl,--as-needed" \
+	CXX="g++ -Wl,--as-needed" \
 	../autogen.sh --prefix=/usr --enable-svg-experimental
 
 	$(MAKE) -C build

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list