Control: tags -1 patch On 02.07.2013 23:43, Petter Reinholdtsen wrote: > The linker problem is fixed by adding -lpthread to the libtool > command. I am not quite sure how to best add it to the source. I > suspect adding this to configure.in somewhere might be a good fix: > > AC_CHECK_LIB(pthread,pthread_atfork)
I think the cleaner way is to add -pthread to the LDFLAGS in src/Makefile.am. See the attached patch for a suggested fix.
diff -Nru prelink-0.0.20090925/debian/changelog prelink-0.0.20090925/debian/changelog --- prelink-0.0.20090925/debian/changelog 2013-05-08 10:49:28.000000000 +0200 +++ prelink-0.0.20090925/debian/changelog 2013-08-10 23:42:17.000000000 +0200 @@ -1,3 +1,13 @@ +prelink (0.0.20090925-8) unstable; urgency=low + + * QA upload. + * Add debian/patches/ftbfs-no-copy-dt-needed.patch: (Closes: #713628) + - Fixes a FTBFS with The --no-copy-dt-needed linker flag which requires + that all needed libraries are explicitly added to the linker command + line. + + -- Andreas Moog <am...@ubuntu.com> Sat, 10 Aug 2013 23:22:16 +0200 + prelink (0.0.20090925-7) unstable; urgency=low * QA upload. diff -Nru prelink-0.0.20090925/debian/patches/ftbfs-no-copy-dt-needed.patch prelink-0.0.20090925/debian/patches/ftbfs-no-copy-dt-needed.patch --- prelink-0.0.20090925/debian/patches/ftbfs-no-copy-dt-needed.patch 1970-01-01 01:00:00.000000000 +0100 +++ prelink-0.0.20090925/debian/patches/ftbfs-no-copy-dt-needed.patch 2013-08-10 23:41:20.000000000 +0200 @@ -0,0 +1,21 @@ +Description:Fixes a FTBFS with The --no-copy-dt-needed linker flag which + requires that all needed libraries are explicitly added to the linker + command line. +Author: Andreas Moog <am...@ubuntu.com> +Bug-Debian: http://bugs.debian.org/713628 +Forwarded: Per mail to Jakub Jelinek, jakub AT redhat DOT com +Last-Update: 2013-08-10 + +Index: prelink/src/Makefile.am +=================================================================== +--- prelink.orig/src/Makefile.am 2013-08-10 23:28:39.000000000 +0200 ++++ prelink/src/Makefile.am 2013-08-10 23:38:53.094809543 +0200 +@@ -21,7 +21,7 @@ + verify.c canonicalize.c md5.c md5.h sha.c sha.h \ + $(common_SOURCES) $(arch_SOURCES) + prelink_LDADD = @LIBGELF@ +-prelink_LDFLAGS = -all-static ++prelink_LDFLAGS = -all-static -pthread + + execstack_SOURCES = execstack.c $(common_SOURCES) $(arch_SOURCES) + diff -Nru prelink-0.0.20090925/debian/patches/series prelink-0.0.20090925/debian/patches/series --- prelink-0.0.20090925/debian/patches/series 2013-05-08 03:21:19.000000000 +0200 +++ prelink-0.0.20090925/debian/patches/series 2013-08-10 23:28:39.000000000 +0200 @@ -11,3 +11,4 @@ r189.patch r190.patch open-with-mode.patch +ftbfs-no-copy-dt-needed.patch
signature.asc
Description: OpenPGP digital signature