This is the mail archive of the binutils@sourceware.org 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: [Patch]: Fix dependencies in opcodes/Makefile.am


* Alan Modra wrote on Fri, Sep 04, 2009 at 05:07:13PM CEST:
> On Fri, Sep 04, 2009 at 02:55:04PM +0200, Tristan Gingold wrote:
> > 	* Makefile.am (i386-gen): Use LIBINTL_DEP for dependency instead
> > 	of BUILD_LIBINTL.
> > 	(ia64-gen): Ditto.
> > 	(z8kgen$): Ditto.
> > 	* Makefile: Regenerate.
> 
> This is OK, but can we do something about the cross-compile case?
> How does the following hack look?

FWIW, looks ok to me.

Cheers,
Ralf

> --- opcodes/configure.in	6 Aug 2009 17:38:04 -0000	1.92
> +++ opcodes/configure.in	4 Sep 2009 14:45:48 -0000
> @@ -101,6 +101,22 @@ AC_CACHE_CHECK(linker --as-needed suppor
>  
>  LT_LIB_M
>  
> +#Libs for generator progs
> +if test "x$cross_compiling" = "xno"; then
> +  BUILD_LIBS=../libiberty/libiberty.a
> +  BUILD_LIB_DEPS=$BUILD_LIBS
> +else
> +  # if cross-compiling, assume we already have -liberty
> +  # and that the version is compatible with new headers.
> +  BUILD_LIBS=-liberty
> +  BUILD_LIB_DEPS=
> +fi
> +BUILD_LIBS="$BUILD_LIBS $LIBINTL"
> +BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
[...]


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