+2005-08-02 Peter Ekberg <peda@lysator.liu.se>
+
+ * ltmain.in (link mode) <lib>: Make sure skipped_export is
+ set to colon if _some_ cmd of export_symbols_cmds is too long.
+
2005-07-24 Peter O'Gorman <peter@pogma.com>
* libtool.m4 (CXX, archive_cmds) [sun]: Add -lCstd, -lCrun
if (!searchname)
return 0;
-#if __CYGWIN__
{
- char wpath[MAX_PATH];
- cygwin_conv_to_full_win32_path(searchname, wpath);
- module = LoadLibrary(wpath);
- }
+ /* Silence dialog from LoadLibrary on some failures.
+ No way to get the error mode, but to set it,
+ so set it twice to preserve any previous flags. */
+ UINT errormode = SetErrorMode (SEM_FAILCRITICALERRORS);
+ SetErrorMode (errormode | SEM_FAILCRITICALERRORS);
+
+#if __CYGWIN__
+ {
+ char wpath[MAX_PATH];
+ cygwin_conv_to_full_win32_path (searchname, wpath);
+ module = LoadLibrary (wpath);
+ }
#else
- module = LoadLibrary (searchname);
+ module = LoadLibrary (searchname);
#endif
+
+ /* Restore the error mode. */
+ SetErrorMode (errormode);
+ }
LT_DLFREE (searchname);
/* libltdl expects this function to fail if it is unable
# The command line is too long to execute in one step.
$show "using reloadable object file for export list..."
skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
fi
done
IFS="$save_ifs"