This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with using libtool dependencies in opcodes

I've applied this patch.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2004-01-07  Daniel Jacobowitz  <>

	* (libopcodes_la_DEPENDENCIES)
	(libopcodes_la_LIBADD): Revert 2003-05-17 change.  Add explanatory
	comment about the problem.
	* Regenerate.

RCS file: /cvs/src/src/opcodes/,v
retrieving revision 1.72
diff -u -p -r1.72
---	2 Dec 2003 08:14:34 -0000	1.72
+++	7 Jan 2004 18:34:11 -0000
@@ -283,8 +283,13 @@ disassemble.lo: disassemble.c $(INCDIR)/
 	$(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
 libopcodes_la_SOURCES =  dis-buf.c disassemble.c dis-init.c
-libopcodes_la_DEPENDENCIES = $(OFILES) ../bfd/
-libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@ ../bfd/
+# It's desirable to list ../bfd/ in DEPENDENCIES and LIBADD.
+# Unfortunately this causes libtool to add -L$(libdir), referring to the
+# planned install directory of libbfd.  This can cause us to pick up an
+# old version of libbfd, or to pick up libbfd for the wrong architecture
+# if host != build.
+libopcodes_la_DEPENDENCIES = $(OFILES)
+libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
 # libtool will build .libs/libopcodes.a.  We create libopcodes.a in

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]