tag 554698 patch
thanks

Dear maintainer, i'm looking your problem. the following command for
building i think is wrong.

/bin/bash ../libtool --tag=CXX   --mode=link x86_64-linux-gnu-g++ -Wall
 -g -O2 -lparted -lgthread-2.0  -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o
gpartedbin Device.o
[...]
it must be

/bin/bash ../libtool --tag=CXX   --mode=link x86_64-linux-gnu-g++ -Wall
 -g -O2  -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o gpartedbin Device.o
$other_object $library_linker
[..]

i see in source tree that library included in LDFLAGS, that was wrong. a
library linker must included into LDADD or LIBS. Also i've added a patch
to fixing it, hopefully solved this problem

-- 
[ Mahyuddin Susanto ]
-
Description: Fix FTBFS binutils-gold with ld no-add-needed
Author: Mahyuddin Susanto <udi...@ubuntu.com>
Bug-Debian: http://bugs.debian.org/554698
Index: gparted-0.8.0/src/Makefile.am
===================================================================
--- gparted-0.8.0.orig/src/Makefile.am	2011-03-14 00:58:45.774543348 +0700
+++ gparted-0.8.0/src/Makefile.am	2011-03-14 00:59:34.102542028 +0700
@@ -62,7 +62,5 @@
 	ufs.cc				\
 	xfs.cc
 
-gpartedbin_LDFLAGS = -lparted -lgthread-2.0 
-
-gpartedbin_LDADD = $(GTKMM_LIBS)
+gpartedbin_LDADD = $(GTKMM_LIBS) -lparted -lgthread-2.0
 
Index: gparted-0.8.0/src/Makefile.in
===================================================================
--- gparted-0.8.0.orig/src/Makefile.in	2011-03-14 00:59:56.302528607 +0700
+++ gparted-0.8.0/src/Makefile.in	2011-03-14 00:59:53.370527058 +0700
@@ -305,8 +305,7 @@
 	ufs.cc				\
 	xfs.cc
 
-gpartedbin_LDFLAGS = -lparted -lgthread-2.0 
-gpartedbin_LDADD = $(GTKMM_LIBS)
+gpartedbin_LDADD = $(GTKMM_LIBS) -lparted -lgthread-2.0
 all: all-am
 
 .SUFFIXES:

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to