OLD | NEW |
1 #! /bin/sh | 1 #! /bin/sh |
2 # Wrapper for compilers which do not understand '-c -o'. | 2 # Wrapper for compilers which do not understand '-c -o'. |
3 | 3 |
4 scriptversion=2012-03-05.13; # UTC | 4 scriptversion=2012-10-14.11; # UTC |
5 | 5 |
6 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free | 6 # Copyright (C) 1999-2013 Free Software Foundation, Inc. |
7 # Software Foundation, Inc. | |
8 # Written by Tom Tromey <tromey@cygnus.com>. | 7 # Written by Tom Tromey <tromey@cygnus.com>. |
9 # | 8 # |
10 # This program is free software; you can redistribute it and/or modify | 9 # This program is free software; you can redistribute it and/or modify |
11 # it under the terms of the GNU General Public License as published by | 10 # it under the terms of the GNU General Public License as published by |
12 # the Free Software Foundation; either version 2, or (at your option) | 11 # the Free Software Foundation; either version 2, or (at your option) |
13 # any later version. | 12 # any later version. |
14 # | 13 # |
15 # This program is distributed in the hope that it will be useful, | 14 # This program is distributed in the hope that it will be useful, |
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 if $shared && test -f "$dir/$lib.dll.lib"; then | 105 if $shared && test -f "$dir/$lib.dll.lib"; then |
107 found=yes | 106 found=yes |
108 lib=$dir/$lib.dll.lib | 107 lib=$dir/$lib.dll.lib |
109 break | 108 break |
110 fi | 109 fi |
111 if test -f "$dir/$lib.lib"; then | 110 if test -f "$dir/$lib.lib"; then |
112 found=yes | 111 found=yes |
113 lib=$dir/$lib.lib | 112 lib=$dir/$lib.lib |
114 break | 113 break |
115 fi | 114 fi |
| 115 if test -f "$dir/lib$lib.a"; then |
| 116 found=yes |
| 117 lib=$dir/lib$lib.a |
| 118 break |
| 119 fi |
116 done | 120 done |
117 IFS=$save_IFS | 121 IFS=$save_IFS |
118 | 122 |
119 if test "$found" != yes; then | 123 if test "$found" != yes; then |
120 lib=$lib.lib | 124 lib=$lib.lib |
121 fi | 125 fi |
122 } | 126 } |
123 | 127 |
124 # func_cl_wrapper cl arg... | 128 # func_cl_wrapper cl arg... |
125 # Adjust compile command to suit cl | 129 # Adjust compile command to suit cl |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 338 |
335 # Local Variables: | 339 # Local Variables: |
336 # mode: shell-script | 340 # mode: shell-script |
337 # sh-indentation: 2 | 341 # sh-indentation: 2 |
338 # eval: (add-hook 'write-file-hooks 'time-stamp) | 342 # eval: (add-hook 'write-file-hooks 'time-stamp) |
339 # time-stamp-start: "scriptversion=" | 343 # time-stamp-start: "scriptversion=" |
340 # time-stamp-format: "%:y-%02m-%02d.%02H" | 344 # time-stamp-format: "%:y-%02m-%02d.%02H" |
341 # time-stamp-time-zone: "UTC" | 345 # time-stamp-time-zone: "UTC" |
342 # time-stamp-end: "; # UTC" | 346 # time-stamp-end: "; # UTC" |
343 # End: | 347 # End: |
OLD | NEW |