[PATCH] Fixes the generation of the libtool script in cross-compiling environments
Otavio Salvador
otavio at ossystems.com.br
Fri May 29 15:08:57 PDT 2009
From: Mario Domenech Goulart <mario at ossystems.com.br>
Generates the libtool file prefixed by ${host_alias} when it is set.
This is required in cross compiling environments (such as OpenEmbedded).
Signed-off-by: Mario Domenech Goulart <mario at ossystems.com.br>
---
dolt.m4 | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dolt.m4 b/dolt.m4
index 8f94582..a958955 100644
--- a/dolt.m4
+++ b/dolt.m4
@@ -163,10 +163,16 @@ done
if $modeok && $tagok ; then
. ${top_builddir_slash}doltcompile "${args@<:@@@:>@}"
else
- exec ${top_builddir_slash}libtool "$[]@"
-fi
__DOLTLIBTOOL__EOF__
+maybe_hyphen=
+if ! test x$host_alias = x; then
+ maybe_hyphen="-"
+fi
+
+echo ' exec ${top_builddir_slash}'${host_alias}${maybe_hyphen}'libtool "$[]@"' >>doltlibtool
+echo 'fi' >>doltlibtool
+
dnl Done writing out doltlibtool; substitute it for libtool.
chmod +x doltlibtool
LIBTOOL='$(top_builddir)/doltlibtool'
--
1.5.6.5
More information about the xorg
mailing list