On Thu, Sep 08, 2011 at 06:25:53PM +0100, Colin Watson wrote: > The following patch fixes this.
I make this mistake every time I use dpatch, I think. This patch adds the new dpatch to 00list too ... * Fix link order to work with 'ld --as-needed'. diff -u libpam-unix2-2.4.1/debian/patches/00list libpam-unix2-2.4.1/debian/patches/00list --- libpam-unix2-2.4.1/debian/patches/00list +++ libpam-unix2-2.4.1/debian/patches/00list @@ -2,0 +3 @@ +03_link_order.dpatch only in patch2: unchanged: --- libpam-unix2-2.4.1.orig/debian/patches/03_link_order.dpatch +++ libpam-unix2-2.4.1/debian/patches/03_link_order.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_link_order.dpatch by Colin Watson <[email protected]> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix link order to work with 'ld --as-needed'. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' libpam-unix2-2.4.1~/unix2_chkpwd/Makefile libpam-unix2-2.4.1/unix2_chkpwd/Makefile +--- libpam-unix2-2.4.1~/unix2_chkpwd/Makefile 2011-09-08 18:21:59.000000000 +0100 ++++ libpam-unix2-2.4.1/unix2_chkpwd/Makefile 2011-09-08 18:22:09.000000000 +0100 +@@ -3,7 +3,7 @@ + all: unix2_chkpwd + + unix2_chkpwd: unix2_chkpwd.o +- gcc -lpam -o unix2_chkpwd unix2_chkpwd.o ++ gcc -o unix2_chkpwd unix2_chkpwd.o -lpam + + clean: + rm -f unix2_chkpwd unix2_chkpwd.o Thanks, -- Colin Watson [[email protected]] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

