Changeset 19588


Ignore:
Timestamp:
09/25/15 11:43:29 (9 years ago)
Author:
glperez
Message:

CHG: Applied new Automake patch for Windows build.
ADD: Patch for Automake to change flags for Microsoft compiler.
CHG: Improved libtool.m4 patch for Windows build.

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  
    4545
    4646# 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.
    4849patch ./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.
     53patch ./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*)
    312@@ -3142,7 +3142,7 @@
    413 case $host_os in
     
    1524       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    1625-        _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 '
    1827        # If the export-symbols file already is a .def file (1st line
    1928        # is EXPORTS), use it as is; otherwise, prepend...
     
    2433        fi~
    2534-       $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 '
    2736       else
    2837        _LT_TAGVAR(ld_shlibs, $1)=no
    2938       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'
    3072@@ -6168,7 +6168,7 @@
    3173          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     
    3375          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    3476-           _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 '
    3678            # If the export-symbols file already is a .def file (1st line
    3779            # is EXPORTS), use it as is; otherwise, prepend...
     
    4284            fi~
    4385-           $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 '
    4587          else
    4688            _LT_TAGVAR(ld_shlibs, $1)=no
Note: See TracChangeset for help on using the changeset viewer.