aboutsummaryrefslogtreecommitdiff
path: root/contrib/autotools-patches/0009-libtool-2.4.2.418-msysize-mod.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/autotools-patches/0009-libtool-2.4.2.418-msysize-mod.patch')
-rw-r--r--contrib/autotools-patches/0009-libtool-2.4.2.418-msysize-mod.patch443
1 files changed, 443 insertions, 0 deletions
diff --git a/contrib/autotools-patches/0009-libtool-2.4.2.418-msysize-mod.patch b/contrib/autotools-patches/0009-libtool-2.4.2.418-msysize-mod.patch
new file mode 100644
index 00000000..4d44cf63
--- /dev/null
+++ b/contrib/autotools-patches/0009-libtool-2.4.2.418-msysize-mod.patch
@@ -0,0 +1,443 @@
1diff --git a/build-aux/config.guess b/build-aux/config.guess
2index f50dcdb6..cd89e459 100755
3--- a/build-aux/config.guess
4+++ b/build-aux/config.guess
5@@ -883,6 +883,9 @@ EOF
6 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
7 echo x86_64-unknown-cygwin
8 exit ;;
9+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
10+ echo x86_64-unknown-msys
11+ exit ;;
12 prep*:SunOS:5.*:*)
13 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
14 exit ;;
15diff -Naur libtool-2.4.2.418-orig/build-aux/ltmain.sh libtool-2.4.2.418/build-aux/ltmain.sh
16--- libtool-2.4.2.418-orig/build-aux/ltmain.sh 2013-10-27 02:53:58.000000000 +0400
17+++ libtool-2.4.2.418/build-aux/ltmain.sh 2014-09-02 10:29:08.840800000 +0400
18@@ -2315,7 +2315,7 @@
19 case $host in
20 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
21 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
22- *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
23+ *cygwin* | *msys* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
24 # don't eliminate duplications in $postdeps and $predeps
25 opt_duplicate_compiler_generated_deps=:
26 ;;
27@@ -3328,7 +3328,7 @@
28
29 # On Cygwin there's no "real" PIC flag so we must build both object types
30 case $host_os in
31- cygwin* | mingw* | pw32* | os2* | cegcc*)
32+ cygwin* | msys* | mingw* | pw32* | os2* | cegcc*)
33 pic_mode=default
34 ;;
35 esac
36@@ -4201,7 +4201,7 @@
37 'exit $?'
38 tstripme=$stripme
39 case $host_os in
40- cygwin* | mingw* | pw32* | cegcc*)
41+ cygwin* | msys* | mingw* | pw32* | cegcc*)
42 case $realname in
43 *.dll.a)
44 tstripme=
45@@ -4307,7 +4307,7 @@
46
47 # Do a test to see if this is really a libtool program.
48 case $host in
49- *cygwin* | *mingw*)
50+ *cygwin* | *msys* | *mingw*)
51 if func_ltwrapper_executable_p "$file"; then
52 func_ltwrapper_scriptname "$file"
53 wrapper=$func_ltwrapper_scriptname_result
54@@ -4382,7 +4382,7 @@
55 # remove .exe since cygwin /usr/bin/install will append another
56 # one anyway
57 case $install_prog,$host in
58- */usr/bin/install*,*cygwin*)
59+ */usr/bin/install*,*cygwin* | */usr/bin/install*,*msys*)
60 case $file:$destfile in
61 *.exe:*.exe)
62 # this is ok
63@@ -4535,7 +4535,7 @@
64 $RM $export_symbols
65 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
66 case $host in
67- *cygwin* | *mingw* | *cegcc* )
68+ *cygwin* | *msys* | *mingw* | *cegcc* )
69 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
70 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
71 ;;
72@@ -4547,7 +4547,7 @@
73 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
74 eval '$MV "$nlist"T "$nlist"'
75 case $host in
76- *cygwin* | *mingw* | *cegcc* )
77+ *cygwin* | *msys* | *mingw* | *cegcc* )
78 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
79 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
80 ;;
81@@ -4561,7 +4561,7 @@
82 func_basename "$dlprefile"
83 name=$func_basename_result
84 case $host in
85- *cygwin* | *mingw* | *cegcc* )
86+ *cygwin* | *msys* | *mingw* | *cegcc* )
87 # if an import library, we need to obtain dlname
88 if func_win32_import_lib_p "$dlprefile"; then
89 func_tr_sh "$dlprefile"
90@@ -4736,7 +4736,7 @@
91 # Transform the symbol file into the correct name.
92 symfileobj=$output_objdir/${my_outputname}S.$objext
93 case $host in
94- *cygwin* | *mingw* | *cegcc* )
95+ *cygwin* | *msys* | *mingw* | *cegcc* )
96 if test -f "$output_objdir/$my_outputname.def"; then
97 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
98 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
99@@ -5629,7 +5629,7 @@
100 {
101 EOF
102 case $host in
103- *mingw* | *cygwin* )
104+ *mingw* | *cygwin* | *msys* )
105 # make stdout use "unix" line endings
106 echo " setmode(1,_O_BINARY);"
107 ;;
108@@ -6350,7 +6350,7 @@
109 $debug_cmd
110
111 case $host in
112- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
113+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
114 # It is impossible to link a dll without this setting, and
115 # we shouldn't force the makefile maintainer to figure out
116 # what system we are compiling for in order to pass an extra
117@@ -6843,7 +6843,7 @@
118 ;;
119 esac
120 case $host in
121- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
122+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
123 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
124 case :$dllsearchpath: in
125 *":$dir:"*) ;;
126@@ -6863,7 +6863,7 @@
127 -l*)
128 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
129 case $host in
130- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
131+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
132 # These systems don't actually have a C or math library (as such)
133 continue
134 ;;
135@@ -6946,7 +6946,7 @@
136
137 -no-install)
138 case $host in
139- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
140+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
141 # The PATH hackery in wrapper scripts is required on Windows
142 # and Darwin in order for the loader to find any dlls it needs.
143 func_warning "'-no-install' is ignored for $host"
144@@ -7812,7 +7812,7 @@
145 fi
146 case $host in
147 # special handling for platforms with PE-DLLs.
148- *cygwin* | *mingw* | *cegcc* )
149+ *cygwin* | *msys* | *mingw* | *cegcc* )
150 # Linker will automatically link against shared library if both
151 # static and shared are present. Therefore, ensure we extract
152 # symbols from the import library if a shared library is present
153@@ -7956,7 +7956,7 @@
154 if test -n "$library_names" &&
155 { test no = "$use_static_libs" || test -z "$old_library"; }; then
156 case $host in
157- *cygwin* | *mingw* | *cegcc* | *os2*)
158+ *cygwin* | *msys* | *mingw* | *cegcc* | *os2*)
159 # No point in relinking DLLs because paths are not encoded
160 func_append notinst_deplibs " $lib"
161 need_relink=no
162@@ -8026,7 +8026,7 @@
163 elif test -n "$soname_spec"; then
164 # bleh windows
165 case $host in
166- *cygwin* | mingw* | *cegcc* | *os2*)
167+ *cygwin* | *msys* | mingw* | *cegcc* | *os2*)
168 func_arith $current - $age
169 major=$func_arith_result
170 versuffix=-$major
171@@ -8899,7 +8899,7 @@
172 if test yes = "$build_libtool_libs"; then
173 if test -n "$rpath"; then
174 case $host in
175- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
176+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
177 # these systems don't actually have a c library (as such)!
178 ;;
179 *-*-rhapsody* | *-*-darwin1.[012])
180@@ -9413,7 +9413,7 @@
181
182 orig_export_symbols=
183 case $host_os in
184- cygwin* | mingw* | cegcc*)
185+ cygwin* | *msys* | mingw* | cegcc*)
186 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
187 # exporting using user supplied symfile
188 func_dll_def_p "$export_symbols" || {
189@@ -9970,7 +9970,7 @@
190
191 prog)
192 case $host in
193- *cygwin*) func_stripname '' '.exe' "$output"
194+ *cygwin* | *msys*) func_stripname '' '.exe' "$output"
195 output=$func_stripname_result.exe;;
196 esac
197 test -n "$vinfo" && \
198@@ -10081,7 +10081,7 @@
199 esac
200 fi
201 case $host in
202- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
203+ *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
204 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
205 case :$dllsearchpath: in
206 *":$libdir:"*) ;;
207@@ -10159,7 +10159,7 @@
208 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
209 wrappers_required=false
210 ;;
211- *cygwin* | *mingw* )
212+ *cygwin* | *msys* | *mingw* )
213 test yes = "$build_libtool_libs" || wrappers_required=false
214 ;;
215 *)
216@@ -10305,14 +10305,14 @@
217 esac
218 # test for cygwin because mv fails w/o .exe extensions
219 case $host in
220- *cygwin*)
221+ *cygwin* | *msys*)
222 exeext=.exe
223 func_stripname '' '.exe' "$outputname"
224 outputname=$func_stripname_result ;;
225 *) exeext= ;;
226 esac
227 case $host in
228- *cygwin* | *mingw* )
229+ *cygwin* | *msys* | *mingw* )
230 func_dirname_and_basename "$output" "" "."
231 output_name=$func_basename_result
232 output_path=$func_dirname_result
233@@ -10644,7 +10644,7 @@
234 # tests/bindir.at for full details.
235 tdlname=$dlname
236 case $host,$output,$installed,$module,$dlname in
237- *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
238+ *cygwin*,*lai,yes,no,*.dll | *msys*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
239 # If a -bindir argument was supplied, place the dll there.
240 if test -n "$bindir"; then
241 func_relative_path "$install_libdir" "$bindir"
242diff -Naur libtool-2.4.2.418-orig/m4/libtool.m4 libtool-2.4.2.418/m4/libtool.m4
243--- libtool-2.4.2.418-orig/m4/libtool.m4 2013-10-26 03:37:46.000000000 +0400
244+++ libtool-2.4.2.418/m4/libtool.m4 2014-09-02 10:19:40.084800000 +0400
245@@ -1665,7 +1665,7 @@
246 lt_cv_sys_max_cmd_len=-1;
247 ;;
248
249- cygwin* | mingw* | cegcc*)
250+ cygwin* | msys* | mingw* | cegcc*)
251 # On Win9x/ME, this test blows up -- it succeeds, but takes
252 # about 5 minutes as the teststring grows exponentially.
253 # Worse, since 9x/ME are not pre-emptively multitasking,
254@@ -1913,7 +1913,7 @@
255 lt_cv_dlopen_libs=
256 ;;
257
258- cygwin*)
259+ cygwin* | msys*)
260 lt_cv_dlopen=dlopen
261 lt_cv_dlopen_libs=
262 ;;
263@@ -2399,7 +2399,7 @@
264 # libtool to hard-code these into programs
265 ;;
266
267-cygwin* | mingw* | pw32* | cegcc*)
268+cygwin* | msys* | mingw* | pw32* | cegcc*)
269 version_type=windows
270 shrext_cmds=.dll
271 need_version=no
272@@ -2431,6 +2431,12 @@
273 m4_if([$1], [],[
274 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
275 ;;
276+ msys*)
277+ # MSYS DLLs use 'msys-' prefix rather than 'lib'
278+ soname_spec='`echo $libname | sed -e 's/^lib/msys-/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
279+m4_if([$1], [],[
280+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
281+ ;;
282 mingw* | cegcc*)
283 # MinGW DLLs use traditional 'lib' prefix
284 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
285@@ -2465,7 +2471,7 @@
286 # Convert to MSYS style.
287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
288 ;;
289- cygwin*)
290+ cygwin* | msys*)
291 # Convert to unix form, then to dos form, then back to unix form
292 # but this time dos style (no spaces!) so that the unix form looks
293 # like /cygdrive/c/PROGRA~1:/cygdr...
294@@ -3203,7 +3209,7 @@
295 esac
296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
297 case $host_os in
298- cygwin* | mingw* | pw32* | cegcc*)
299+ cygwin* | msys* | mingw* | pw32* | cegcc*)
300 if test yes != "$GCC"; then
301 reload_cmds=false
302 fi
303@@ -3259,7 +3265,7 @@
304 lt_cv_file_magic_test_file=/shlib/libc.so
305 ;;
306
307-cygwin*)
308+cygwin* | msys*)
309 # func_win32_libid is a shell function defined in ltmain.sh
310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
311 lt_cv_file_magic_cmd='func_win32_libid'
312@@ -3564,7 +3570,7 @@
313 [lt_cv_sharedlib_from_linklib_cmd='unknown'
314
315 case $host_os in
316-cygwin* | mingw* | pw32* | cegcc*)
317+cygwin* | msys* | mingw* | pw32* | cegcc*)
318 # two different shell functions defined in ltmain.sh;
319 # decide which one to use based on capabilities of $DLLTOOL
320 case `$DLLTOOL --help 2>&1` in
321@@ -3634,7 +3640,7 @@
322 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
323 LIBM=
324 case $host in
325-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
326+*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-msys* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
327 # These system don't have libm, or don't need it
328 ;;
329 *-ncr-sysv4.3*)
330@@ -3709,7 +3715,7 @@
331 aix*)
332 symcode='[[BCDT]]'
333 ;;
334-cygwin* | mingw* | pw32* | cegcc*)
335+cygwin* | msys* | mingw* | pw32* | cegcc*)
336 symcode='[[ABCDGISTW]]'
337 ;;
338 hpux*)
339@@ -4015,7 +4021,7 @@
340 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
341 # PIC is the default for these OSes.
342 ;;
343- mingw* | cygwin* | os2* | pw32* | cegcc*)
344+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
345 # This hack is so that the source file can tell whether it is being
346 # built for inclusion in a dll (and should export symbols for example).
347 # Although the cygwin gcc ignores -fPIC, still need this for old-style
348@@ -4086,7 +4092,7 @@
349 ;;
350 esac
351 ;;
352- mingw* | cygwin* | os2* | pw32* | cegcc*)
353+ mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
354 # This hack is so that the source file can tell whether it is being
355 # built for inclusion in a dll (and should export symbols for example).
356 m4_if([$1], [GCJ], [],
357@@ -4334,7 +4340,7 @@
358 # PIC is the default for these OSes.
359 ;;
360
361- mingw* | cygwin* | pw32* | os2* | cegcc*)
362+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
363 # This hack is so that the source file can tell whether it is being
364 # built for inclusion in a dll (and should export symbols for example).
365 # Although the cygwin gcc ignores -fPIC, still need this for old-style
366@@ -4433,7 +4439,7 @@
367 esac
368 ;;
369
370- mingw* | cygwin* | pw32* | os2* | cegcc*)
371+ mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
372 # This hack is so that the source file can tell whether it is being
373 # built for inclusion in a dll (and should export symbols for example).
374 m4_if([$1], [GCJ], [],
375@@ -4699,7 +4705,7 @@
376 pw32*)
377 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
378 ;;
379- cygwin* | mingw* | cegcc*)
380+ cygwin* | msys* | mingw* | cegcc*)
381 case $cc_basename in
382 cl*)
383 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
384@@ -4757,7 +4763,7 @@
385 extract_expsyms_cmds=
386
387 case $host_os in
388- cygwin* | mingw* | pw32* | cegcc*)
389+ cygwin* | msys* | mingw* | pw32* | cegcc*)
390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
391 # When not using gcc, we currently assume that we are using
392 # Microsoft Visual C++.
393@@ -4872,7 +4878,7 @@
394 fi
395 ;;
396
397- cygwin* | mingw* | pw32* | cegcc*)
398+ cygwin* | msys* | mingw* | pw32* | cegcc*)
399 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
400 # as there is no search path for DLLs.
401 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
402@@ -5247,7 +5253,7 @@
403 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
404 ;;
405
406- cygwin* | mingw* | pw32* | cegcc*)
407+ cygwin* | msys* | mingw* | pw32* | cegcc*)
408 # When not using gcc, we currently assume that we are using
409 # Microsoft Visual C++.
410 # hardcode_libdir_flag_spec is actually meaningless, as there is
411@@ -6241,7 +6247,7 @@
412 esac
413 ;;
414
415- cygwin* | mingw* | pw32* | cegcc*)
416+ cygwin* | msys* | mingw* | pw32* | cegcc*)
417 case $GXX,$cc_basename in
418 ,cl* | no,cl*)
419 # Native MSVC
420@@ -7937,7 +7943,7 @@
421 *-*-mingw* ) # actually msys
422 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
423 ;;
424- *-*-cygwin* )
425+ *-*-cygwin* | *-*-msys* )
426 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
427 ;;
428 * ) # otherwise, assume *nix
429@@ -7945,12 +7951,12 @@
430 ;;
431 esac
432 ;;
433- *-*-cygwin* )
434+ *-*-cygwin* | *-*-msys* )
435 case $build in
436 *-*-mingw* ) # actually msys
437 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
438 ;;
439- *-*-cygwin* )
440+ *-*-cygwin* | *-*-msys* )
441 lt_cv_to_host_file_cmd=func_convert_file_noop
442 ;;
443 * ) # otherwise, assume *nix