playlist demuxer: remove tabs
[vlc.git] / extras / tools / libtool-2.4.2-response-files.patch
blobd85aceaecd3b00b5a9bddb38ff9209b4a3435f5a
1 From 5fe8ae738927cd2c7e6d786b359e39876c84630c Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
3 Date: Wed, 10 Oct 2018 10:47:21 +0300
4 Subject: [PATCH] Prefer response files over linker scripts for mingw tools
6 The GCC/binutils tools support response files just fine, while
7 lld (impersonating GNU ld) only supports response files, not
8 linker scripts. Using a linker script as input just to pass a
9 list of files is overkill for cases when a response file is enough.
10 ---
11 libltdl/config/ltmain.m4sh | 28 ++++++++++++++--------------
12 libltdl/m4/libtool.m4 | 2 ++
13 2 files changed, 16 insertions(+), 14 deletions(-)
15 diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
16 index 2641327..f6b4217 100644
17 --- a/libltdl/config/ltmain.m4sh
18 +++ b/libltdl/config/ltmain.m4sh
19 @@ -7545,20 +7545,7 @@ EOF
20 last_robj=
21 k=1
23 - if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
24 - output=${output_objdir}/${output_la}.lnkscript
25 - func_verbose "creating GNU ld script: $output"
26 - echo 'INPUT (' > $output
27 - for obj in $save_libobjs
28 - do
29 - func_to_tool_file "$obj"
30 - $ECHO "$func_to_tool_file_result" >> $output
31 - done
32 - echo ')' >> $output
33 - func_append delfiles " $output"
34 - func_to_tool_file "$output"
35 - output=$func_to_tool_file_result
36 - elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
37 + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
38 output=${output_objdir}/${output_la}.lnk
39 func_verbose "creating linker input file list: $output"
40 : > $output
41 @@ -7577,6 +7564,19 @@ EOF
42 func_append delfiles " $output"
43 func_to_tool_file "$output"
44 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
45 + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
46 + output=${output_objdir}/${output_la}.lnkscript
47 + func_verbose "creating GNU ld script: $output"
48 + echo 'INPUT (' > $output
49 + for obj in $save_libobjs
50 + do
51 + func_to_tool_file "$obj"
52 + $ECHO "$func_to_tool_file_result" >> $output
53 + done
54 + echo ')' >> $output
55 + func_append delfiles " $output"
56 + func_to_tool_file "$output"
57 + output=$func_to_tool_file_result
58 else
59 if test -n "$save_libobjs"; then
60 func_verbose "creating reloadable object files..."
61 diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
62 index 6f93d32..2c5c2f0 100644
63 --- a/libltdl/m4/libtool.m4
64 +++ b/libltdl/m4/libtool.m4
65 @@ -4750,6 +4750,7 @@ _LT_EOF
66 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
67 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
68 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
69 + _LT_TAGVAR(file_list_spec, $1)='@'
71 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
72 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
73 @@ -6166,6 +6167,7 @@ if test "$_lt_caught_CXX_error" != yes; then
74 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
75 _LT_TAGVAR(always_export_symbols, $1)=no
76 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
77 + _LT_TAGVAR(file_list_spec, $1)='@'
79 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
80 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
81 --
82 2.7.4