Package: rdup
Version: 1.0.5-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch oneiric

(Originally reported as
https://bugs.launchpad.net/ubuntu/+source/rdup/+bug/770793.)

rdup fails to build with 'ld --as-needed', because it invokes the linker
with libraries before objects on the link line.  See
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries
for more details.  The following patch corrects this.

  * Place objects before libraries on the link line.

--- rdup-1.0.5.orig/GNUmakefile.in
+++ rdup-1.0.5/GNUmakefile.in
@@ -44,13 +44,13 @@
        chmod +x sh/rdup-ln sh/rdup-simple
 
 rdup-up: $(OBJ_UP) $(HDR)
-       ${GCC} ${GLIB_LIBS} ${LIBS} ${OBJ_UP} -o rdup-up
+       ${GCC} ${OBJ_UP} ${GLIB_LIBS} ${LIBS} -o rdup-up
 
 rdup-tr: $(OBJ_TR) $(HDR)
-       ${GCC} ${GLIB_LIBS} ${LIBS} ${OBJ_TR} -o rdup-tr
+       ${GCC} ${OBJ_TR} ${GLIB_LIBS} ${LIBS} -o rdup-tr
 
 rdup:  ${OBJ} ${HDR} 
-       ${GCC} ${GLIB_LIBS} ${LIBS} ${OBJ} -o rdup
+       ${GCC} ${OBJ} ${GLIB_LIBS} ${LIBS} -o rdup
 
 ifeq (${ARCHIVE_L},no)
 strip: rdup rdup-up

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to