[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix cross compilation with wine for the case SHELL != bash.
From: |
Alexei Sheplyakov |
Subject: |
[PATCH] Fix cross compilation with wine for the case SHELL != bash. |
Date: |
Sat, 8 Nov 2008 21:51:20 +0300 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello!
I've tried to cross compile the GMP (http://gmplib.org) library using libtool
version 2.2.7a (from current git). The compilation went fine, however, the test
suite failed due to GMP dll being not found:
$ make -C tests check
make[2]: Entering directory
`/home/pc7135/varg/tmp/build/woe32/gmp/gmp-4.2.4-build/tests'
err:module:import_dll Library libgmp-3.dll (which is needed by
L"Z:\\home\\pc7135\\varg\\tmp\\build\\woe32\\gmp\\gmp-4.2.4-build\\tests\\.libs\\t-bswap.exe")
not found
The patch below fixes this issue:
From: Alexei Sheplyakov <address@hidden>
Subject: [PATCH] Fix cross compilation with wine for the case SHELL != bash.
Some shells' builtin `echo' command behaves as prescribed by POSIX, that is,
it always interprets escape sequences such as '\v', '\b', etc. Since backslash
is a path separator, that's not what we want (think of "Z:\home\varg\bin").
That's why func_to_host_path should use $ECHO instead of echo, otherwise
(woe32) paths get mangled.
---
libltdl/config/ltmain.m4sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 696b6ab..005c6a8 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -2600,7 +2600,7 @@ func_to_host_path ()
;;
*cygwin* )
func_to_host_path_tmp1=`cygpath -w "$1"`
- func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |\
$SED -e "$lt_sed_naive_backslashify"`
;;
* )
@@ -2613,7 +2613,7 @@ func_to_host_path ()
# the odd construction:
func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
- func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |\
$SED -e "$lt_sed_naive_backslashify"`
else
# Allow warning below.
--
1.5.6.5
Best regards,
Alexei
--
All science is either physics or stamp collecting.
signature.asc
Description: Digital signature
- [PATCH] Fix cross compilation with wine for the case SHELL != bash.,
Alexei Sheplyakov <=