[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    [PATCH] Fixes the generation of the libtool script in cross-compiling
From:       Otavio Salvador <otavio () ossystems ! com ! br>
Date:       2009-05-29 22:08:57
Message-ID: 1243634937-5049-1-git-send-email-otavio () ossystems ! com ! br
[Download RAW message or body]

From: Mario Domenech Goulart <mario@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@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

_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic