This is the mail archive of the binutils@sources.redhat.com 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: libtool in binutils question


On 11 Jan 2002, Ian Lance Taylor wrote:

> It's been true for a while that if host_alias != target_alias, the
> default for program_prefix is "${target_alias}-".  That is true of
> autoconf 2.13, for example.  Are you saying that autoconf 2.5x sets
> program_prefix whenever target_alias is set, even if it is the same as
> host_alias?  I think that would be a bad change, as it makes it much
> harder to configure an entire tree correctly.

 That's exactly what happens and I agree it is a dubious feature, to say
at least.  I complained to the maintainer sending the following patch, but
he rejected it stating this is intended behaviour.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

2001-11-19  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* lib/autoconf/general.m4 (AC_CANONICAL_HOST):  Don't set
	program_prefix if target_alias equals host_alias.

autoconf-2.52-target_prefix.patch
diff -up --recursive --new-file autoconf-2.52.macro/acgeneral.m4 autoconf-2.52/acgeneral.m4
--- autoconf-2.52.macro/acgeneral.m4	Wed Jul  4 15:05:43 2001
+++ autoconf-2.52/acgeneral.m4	Sun Nov 18 15:27:47 2001
@@ -1774,7 +1774,7 @@ _AC_CANONICAL_SPLIT([target])
 
 # The aliases save the names the user supplied, while $host etc.
 # will get canonicalized.
-test -n "$target_alias" &&
+test -n "$target_alias" && test "x$target_alias" != "x$host_alias" &&
   test "$program_prefix$program_suffix$program_transform_name" = \
     NONENONEs,x,x, &&
   program_prefix=${target_alias}-[]dnl


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