-----Original Message----- From: vapierfil...@gmail.com [mailto:vapierfil...@gmail.com] On Behalf Of Mike Frysinger Sent: Friday, June 24, 2011 2:13 PM To: Peter Budny Cc: urjtag-development@lists.sourceforge.net Subject: Re: [UrJTAG-dev] Cannot link with FTD2XX
On Thu, Jun 16, 2011 at 09:18, Peter Budny wrote: >> When trying to compile UrJTAG with ftd2xx support, it fails to link >> the executables. This seems to be because @FTD2XXLIB@ is being added >> to liburjtag_la_LIBADD in src/Makefile.am (where it does not help >> define any >> symbols) instead of jtag_LDADD in src/apps/jtag/Makefile.am (where the >> EXE is linked). > > libtool should look at all the libraries encoded in liburjtag.la and pull them in as needed when linking jtag since jtag depends on the .la file. so what you describe does not sound incorrect, but expected behavior. otherwise, the change you're proposing would break shared library creation as it is liburjtag that is using FTDI symbols and not the jtag app. Looking at the .la file that libtool generates (and this is strictly from toolchain SVN, no modification) I don't see any mention of ftd2xx.lib. The dependency_libs variable is empty, which is where I would naively expect to find it listed. (In fact all the variable are empty, except old_library='liburjtag.a' and libdir='/usr/local/lib'.) Unless I'm missing something, it appears that including ftd2xx.lib doesn't define any symbols (which makes sense to me, because there's no compilation involved in creating an archive, so how could it resolve symbols?), nor does it put ftd2xx.lib into the archive in any way. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ UrJTAG-development mailing list UrJTAG-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/urjtag-development