Changeset 19588
- Timestamp:
- 09/25/15 11:43:29 (9 years ago)
- Location:
- issm/trunk-jpl/externalpackages/autotools
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/autotools/install-win.sh
r19580 r19588 45 45 46 46 # This patch takes care of removing options passed to the linker that casuse 47 # the build to fail. 47 # the build to fail, as well as changing some flags to match up to Microsoft 48 # compilers. 48 49 patch ./install/share/aclocal/libtool.m4 < ./patches/libtool.m4.patch 50 51 # Small change to Automake in order to get the right flags for Microsoft's 52 # compiler. 53 patch ./install/bin/automake < ./patches/automake.patch -
issm/trunk-jpl/externalpackages/autotools/patches/libtool.m4.patch
r19375 r19588 1 --- ./externalpackages/autotools/install/share/aclocal/libtool.m4 2015-05-22 18:31:17.780392900 -0700 2 +++ ./m4/libtool.m4 2015-05-22 18:35:16.669058700 -0700 1 --- ./externalpackages/autotools/install/share/aclocal/libtool.m4 2015-09-24 19:28:57.393566400 -0700 2 +++ /home/daeden/tmp/libtool.m4 2015-09-25 11:30:45.133747600 -0700 3 @@ -2382,7 +2382,7 @@ 4 # Native MSVC 5 libname_spec='$name' 6 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 7 - library_names_spec='${libname}.dll.lib' 8 + library_names_spec='${libname}${shrext_cmds}' 9 10 case $build_os in 11 mingw*) 3 12 @@ -3142,7 +3142,7 @@ 4 13 case $host_os in … … 15 24 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16 25 - _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' 17 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD $libobjs $deplibs $compiler_flags -o$output_objdir/$soname '26 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD $libobjs $deplibs $compiler_flags /OUT:$output_objdir/$soname ' 18 27 # If the export-symbols file already is a .def file (1st line 19 28 # is EXPORTS), use it as is; otherwise, prepend... … … 24 33 fi~ 25 34 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 26 + $CC /LD $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o$output_objdir/$soname '35 + $CC /LD $output_objdir/$soname.def $libobjs $deplibs $compiler_flags /OUT:$output_objdir/$soname ' 27 36 else 28 37 _LT_TAGVAR(ld_shlibs, $1)=no 29 38 fi 39 @@ -5130,13 +5130,13 @@ 40 # Tell ltmain to make .dll files, not .so files. 41 shrext_cmds=".dll" 42 # FIXME: Setting linknames here is a bad hack. 43 - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 44 + _LT_TAGVAR(archive_cmds, $1)='$CC /OUT:$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 45 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 46 - sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 47 + sed -n -e 's/\\\\\\\(.*\\\\\\\)/\/link\\\ \/EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 48 else 49 - sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 50 + sed -e 's/\\\\\\\(.*\\\\\\\)/\/link\\\ \/EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 51 fi~ 52 - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 53 + $CC /OUT:$tool_output_objdir$soname $libobjs $compiler_flags $deplibs~ 54 linknames=' 55 # The linker will not automatically build a static lib if we build a DLL. 56 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 57 @@ -6131,11 +6131,11 @@ 58 # FIXME: Setting linknames here is a bad hack. 59 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 60 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 61 - $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 62 + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/\/link\\\ \/EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 63 else 64 - $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 65 + $SED -e 's/\\\\\\\(.*\\\\\\\)/\/link\\\ \/EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 66 fi~ 67 - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 68 + $CC /Fo:$tool_output_objdir$soname $libobjs $compiler_flags $deplibs~ 69 linknames=' 70 # The linker will not automatically build a static lib if we build a DLL. 71 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 30 72 @@ -6168,7 +6168,7 @@ 31 73 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes … … 33 75 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 34 76 - _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' 35 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o$output_objdir/$soname '77 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags /OUT:$output_objdir/$soname ' 36 78 # If the export-symbols file already is a .def file (1st line 37 79 # is EXPORTS), use it as is; otherwise, prepend... … … 42 84 fi~ 43 85 - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 44 + $CC /LD -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o$output_objdir/$soname '86 + $CC /LD -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags /OUT:$output_objdir/$soname ' 45 87 else 46 88 _LT_TAGVAR(ld_shlibs, $1)=no
Note:
See TracChangeset
for help on using the changeset viewer.