[mythtv-commits] Ticket #2402: qmake build system has bad dependencies which causes --as-needed and future binutils to fail to link

MythTV mythtv at cvs.mythtv.org
Wed Jan 16 00:48:18 UTC 2008


#2402: qmake build system has bad dependencies which causes --as-needed and future
binutils to fail to link
-------------------------------+--------------------------------------------
 Reporter:  cardoe at gentoo.org  |        Owner:  nigel   
     Type:  defect             |       Status:  assigned
 Priority:  minor              |    Milestone:  unknown 
Component:  mythtv             |      Version:  0.20    
 Severity:  medium             |   Resolution:          
  Mlocked:  0                  |  
-------------------------------+--------------------------------------------

Comment(by nigel):

 Hmm. I just hacked a build machine's Qt to use ld with --as-needed,
 deleted all libs and did a build of both 0-20-fixes and current SVN head.
 No linker errors:
 {{{
 % make
 ...
 cd libmyth && make -f Makefile
 make[2]: Entering directory `/home/nigel/mythtv/libs/libmyth'
 rm -f libmyth-0.20.so.0.20.0 libmyth-0.20.so libmyth-0.20.so.0
 libmyth-0.20.so.0.20
 g++ -shared -v -Wl,--as-needed,--verbose -Wl,-soname,libmyth-0.20.so.0 -o
 libmyth-0.20.so.0.20.0
 ...
 GNU ld version 2.17 Debian GNU/Linux
 ...
 attempt to open /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o
 succeeded
 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o
 ln -s libmyth-0.20.so.0.20.0 libmyth-0.20.so
 ln -s libmyth-0.20.so.0.20.0 libmyth-0.20.so.0
 ln -s libmyth-0.20.so.0.20.0 libmyth-0.20.so.0.20
 make[2]: Leaving directory `/home/nigel/mythtv/libs/libmyth'
 }}}
 I have looked at the binutils README, but there don't seem to be any real
 changes with --as-needed in 2.18 (except for a helper script). Am I going
 mad? Or does --as-needed do nothing different?

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2402#comment:6>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list