Package: microcom
Version: 2012.06.0-2
Severity: normal
Tags: upstream patch
User: debian-...@lists.debian.org
Usertags: ld-as-needed

microcom fails to build when --as-needed linker option is enabled,
because of incorrect order of parameters passed to ld. Here's a log of
failed build in Ubuntu:
https://launchpad.net/ubuntu/+source/microcom/2012.06.0-2/+build/3580821/+files/buildlog_ubuntu-quantal-i386.microcom_2012.06.0-2_FAILEDTOBUILD.txt.gz

See also
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

The following patch was used in Ubuntu to fix the problem.
https://launchpad.net/ubuntu/+source/microcom/2012.06.0-2ubuntu1

--- microcom-2012.06.0.orig/Makefile
+++ microcom-2012.06.0/Makefile
@@ -20,7 +20,7 @@
 #****************************************************************************/

 CFLAGS         += -Wall -O2 -g
-LDFLAGS                += -lreadline -lpthread
+LDLIBS         += -lreadline -lpthread
 CPPFLAGS       += -DPKG_VERSION="\"2012.06.0\"" -DPF_CAN=29 -DAF_CAN=PF_CAN





-- 
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