[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: func_convert_file_cygwin_to_w32 woes
From: |
Peter Rosin |
Subject: |
Re: func_convert_file_cygwin_to_w32 woes |
Date: |
Tue, 04 Jan 2011 17:44:58 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
Den 2011-01-04 05:39 skrev Dan McMahill:
> On 1/2/2011 12:37 AM, Ralf Wildenhues wrote:
>> Hi Dan,
>>
>> * Dan McMahill wrote on Sat, Jan 01, 2011 at 04:53:25AM CET:
>>> I am trying to build a program under cygwin but using the mingw tool
>>> chain in a fake cross build way. In my configure environment, I have:
>>>
>>> export lt_cv_to_tool_file_cmd=func_convert_file_cygwin_to_w32
>>>
>>> as suggested by the libtool manual. I'm using libtool 2.4.
>>>
>>> Everything goes smoothly until install time when libtool calls ranlib
>>> (the mingw one) on an absolute path and of course the cygwin absolute
>>> path doesn't make sense to the mingw ranlib. I thought that's what the
>>> func_convert... bit was for.
>>
>> Please copy and paste 'libtool --mode={link,relink,install}' commands
>> for the libraries and programs involved. We may provide better help
>> then.
>
> attached.
Ok, I found a couple of minutes to look at this. Can you check if this
patch helps?
(It still needs a ChangeLog etc...)
Cheers,
Peter
>From 589ec246bb679612441a849d852b153cf4820466 Mon Sep 17 00:00:00 2001
From: Peter Rosin <address@hidden>
Date: Tue, 4 Jan 2011 17:39:06 +0100
Subject: [PATCH] Convert ranlib argument to toolchain format.
---
libltdl/config/ltmain.m4sh | 4 ++++
libltdl/m4/libtool.m4 | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 336d97b..036fa1b 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -2412,6 +2412,8 @@ func_mode_install ()
# Set up the ranlib parameters.
oldlib="$destdir/$name"
+ func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
+ tool_oldlib=$func_to_tool_file_result
func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
@@ -8370,6 +8372,8 @@ EOF
esac
done
fi
+ func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
+ tool_oldlib=$func_to_tool_file_result
eval cmds=\"$old_archive_cmds\"
func_len " $cmds"
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 4239395..c144755 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -1448,13 +1448,13 @@ old_postuninstall_cmds=
if test -n "$RANLIB"; then
case $host_os in
openbsd*)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
;;
*)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
;;
esac
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
fi
case $host_os in
--
1.7.2.3
- Re: func_convert_file_cygwin_to_w32 woes,
Peter Rosin <=