[SCM] gmerlin-avdecoder/master: Add -Wl,--as-needed to LDFLAGS

Jonas Smedegaard dr at jones.dk
Mon Jan 17 20:58:49 UTC 2011


On Mon, Jan 17, 2011 at 07:31:48PM +0000, alessio at users.alioth.debian.org wrote:
>    Add -Wl,--as-needed to LDFLAGS
>
>+LDFLAGS+=-Wl,--as-needed
>+
> include /usr/share/cdbs/1/rules/upstream-tarball.mk
> include /usr/share/cdbs/1/rules/debhelper.mk
> include /usr/share/cdbs/1/class/autotools.mk

I recommend to generally add flags _below_ inclusions, except when 
otherwise needed.

In the past order was frewuently important, and quite nonintuitively.

This has mostly been cleaned up by now, and I recommend to declare 
variables at top only for those special cases with special need for 
that.  Warnings should now be emitted when it is needed and not done.


  - Jonas

-- 
  * Jonas Smedegaard - idealist & Internet-arkitekt
  * Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-commits/attachments/20110117/e72969a8/attachment.pgp>


More information about the pkg-multimedia-commits mailing list