Den 2011-01-05 05:30 skrev Dan McMahill: > On 1/4/2011 11:44 AM, Peter Rosin wrote: >> 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 >> > > > I'm not running a git version but applying the patch to the libtool-2.4 > I was using worked. This seems to address the problem. > > Many thanks.
And thank you Dan, for confirming! Is it ok to add your name to the THANKS file? Before I tie up the lose ends with this patch, I wonder if Ralf (or someone else) could tell me if I should also fix the other assignments of old_archive_cmds -- such as in the below snippet -- or is that completely irrelevant? Cheers, Peter irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;;