Changes in automake/compile [59310bf:00cc023]
- File:
-
- 1 edited
-
automake/compile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
automake/compile
r59310bf r00cc023 2 2 # Wrapper for compilers which do not understand '-c -o'. 3 3 4 scriptversion=2012-10-14.11; # UTC 5 6 # Copyright (C) 1999-2014 Free Software Foundation, Inc. 4 scriptversion=2012-01-04.17; # UTC 5 6 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free 7 # Software Foundation, Inc. 7 8 # Written by Tom Tromey <tromey@cygnus.com>. 8 9 # … … 77 78 ;; 78 79 esac 79 }80 81 # func_cl_dashL linkdir82 # Make cl look for libraries in LINKDIR83 func_cl_dashL ()84 {85 func_file_conv "$1"86 if test -z "$lib_path"; then87 lib_path=$file88 else89 lib_path="$lib_path;$file"90 fi91 linker_opts="$linker_opts -LIBPATH:$file"92 }93 94 # func_cl_dashl library95 # Do a library search-path lookup for cl96 func_cl_dashl ()97 {98 lib=$199 found=no100 save_IFS=$IFS101 IFS=';'102 for dir in $lib_path $LIB103 do104 IFS=$save_IFS105 if $shared && test -f "$dir/$lib.dll.lib"; then106 found=yes107 lib=$dir/$lib.dll.lib108 break109 fi110 if test -f "$dir/$lib.lib"; then111 found=yes112 lib=$dir/$lib.lib113 break114 fi115 if test -f "$dir/lib$lib.a"; then116 found=yes117 lib=$dir/lib$lib.a118 break119 fi120 done121 IFS=$save_IFS122 123 if test "$found" != yes; then124 lib=$lib.lib125 fi126 80 } 127 81 … … 156 110 esac 157 111 ;; 158 -I)159 eat=1160 func_file_conv "$2" mingw161 set x "$@" -I"$file"162 shift163 ;;164 112 -I*) 165 113 func_file_conv "${1#-I}" mingw … … 167 115 shift 168 116 ;; 169 -l)170 eat=1171 func_cl_dashl "$2"172 set x "$@" "$lib"173 shift174 ;;175 117 -l*) 176 func_cl_dashl "${1#-l}" 177 set x "$@" "$lib" 178 shift 179 ;; 180 -L) 181 eat=1 182 func_cl_dashL "$2" 118 lib=${1#-l} 119 found=no 120 save_IFS=$IFS 121 IFS=';' 122 for dir in $lib_path $LIB 123 do 124 IFS=$save_IFS 125 if $shared && test -f "$dir/$lib.dll.lib"; then 126 found=yes 127 set x "$@" "$dir/$lib.dll.lib" 128 break 129 fi 130 if test -f "$dir/$lib.lib"; then 131 found=yes 132 set x "$@" "$dir/$lib.lib" 133 break 134 fi 135 done 136 IFS=$save_IFS 137 138 test "$found" != yes && set x "$@" "$lib.lib" 139 shift 183 140 ;; 184 141 -L*) 185 func_cl_dashL "${1#-L}" 142 func_file_conv "${1#-L}" 143 if test -z "$lib_path"; then 144 lib_path=$file 145 else 146 lib_path="$lib_path;$file" 147 fi 148 linker_opts="$linker_opts -LIBPATH:$file" 186 149 ;; 187 150 -static)
Note:
See TracChangeset
for help on using the changeset viewer.