diff -Nru opendrim-lmp-ethernetport-1.1.2/debian/changelog opendrim-lmp-ethernetport-1.1.2/debian/changelog --- opendrim-lmp-ethernetport-1.1.2/debian/changelog 2010-07-23 14:17:01.000000000 +0000 +++ opendrim-lmp-ethernetport-1.1.2/debian/changelog 2011-07-08 17:19:57.000000000 +0000 @@ -1,3 +1,11 @@ +opendrim-lmp-ethernetport (1.1.2-0ubuntu2) oneiric; urgency=low + + * debian/patches/01-ftbfs-add-opendrim-lib.patch: Added library opendrim to + LIBS variable in check routine of acinclude.m4 to build with ld + --as-needed (LP: #756187) + + -- Sebastian Carneiro Fri, 08 Jul 2011 19:19:57 +0200 + opendrim-lmp-ethernetport (1.1.2-0ubuntu1) maverick; urgency=low * New upstream version diff -Nru opendrim-lmp-ethernetport-1.1.2/debian/patches/01-ftbfs-add-opendrim-lib.patch opendrim-lmp-ethernetport-1.1.2/debian/patches/01-ftbfs-add-opendrim-lib.patch --- opendrim-lmp-ethernetport-1.1.2/debian/patches/01-ftbfs-add-opendrim-lib.patch 1970-01-01 00:00:00.000000000 +0000 +++ opendrim-lmp-ethernetport-1.1.2/debian/patches/01-ftbfs-add-opendrim-lib.patch 2011-07-08 17:19:54.000000000 +0000 @@ -0,0 +1,20 @@ +Description: To fix FTBFS because of changes in defaults for toolchain (binutils) + it is necessary to include library opendrim at linking time. This patch modifies + acinclude.m4 adding such library to the LIBS variable. + . +Forwarded: http://sourceforge.net/apps/trac/opendrim/ticket/1 +Author: Sebastian Carneiro +Last-Update: 2011-07-07 + +Index: opendrim-lmp-ethernetport/acinclude.m4 +=================================================================== +--- opendrim-lmp-ethernetport.orig/acinclude.m4 2011-07-07 22:11:28.007179001 -0300 ++++ opendrim-lmp-ethernetport/acinclude.m4 2011-07-07 22:11:14.727192359 -0300 +@@ -261,6 +261,7 @@ + if test -e $OPENDRIMCOMMONLIBDIR/libopendrim.so + then + AC_MSG_RESULT(yes) ++ LIBS="${LIBS} -lopendrim" + else + AC_MSG_ERROR([[no. The OpenDRIM Common library could not be found (libopendrim.so)]]) + fi diff -Nru opendrim-lmp-ethernetport-1.1.2/debian/patches/series opendrim-lmp-ethernetport-1.1.2/debian/patches/series --- opendrim-lmp-ethernetport-1.1.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ opendrim-lmp-ethernetport-1.1.2/debian/patches/series 2011-07-08 17:19:54.000000000 +0000 @@ -0,0 +1 @@ +01-ftbfs-add-opendrim-lib.patch