Changeset 19375
- Timestamp:
- 05/22/15 18:41:45 (10 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/autotools/patches/libtool.m4.patch
r15296 r19375 1 --- m4/libtool.m4 2013-06-19 22:19:27.313488900 -0700 2 +++ m4/libtool.m4.bak 2013-06-18 18:45:55.766285300 -0700 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 3 @@ -3142,7 +3142,7 @@ 4 case $host_os in 5 cygwin* | mingw* | pw32* | cegcc*) 6 if test "$GCC" != yes; then 7 - reload_cmds=false 8 + reload_cmds='lib /OUT:$output$reload_objs' 9 fi 10 ;; 11 darwin*) 3 12 @@ -4752,7 +4752,7 @@ 4 13 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] … … 6 15 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7 16 - _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' 8 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib'17 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ' 9 18 # If the export-symbols file already is a .def file (1st line 10 19 # is EXPORTS), use it as is; otherwise, prepend... … … 15 24 fi~ 16 25 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17 + $CC /LD $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib'26 + $CC /LD $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ' 18 27 else 19 28 _LT_TAGVAR(ld_shlibs, $1)=no … … 24 33 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 25 34 - _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' 26 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib'35 + _LT_TAGVAR(archive_cmds, $1)='$CC /LD -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ' 27 36 # If the export-symbols file already is a .def file (1st line 28 37 # is EXPORTS), use it as is; otherwise, prepend... … … 33 42 fi~ 34 43 - $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' 35 + $CC /LD -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'44 + $CC /LD -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ' 36 45 else 37 46 _LT_TAGVAR(ld_shlibs, $1)=no -
issm/trunk-jpl/src/c/Makefile.am
r19286 r19375 6 6 7 7 #Library declaration {{{ 8 8 if !WINDOWS 9 9 lib_LTLIBRARIES = libISSMCore.la libISSMOverload.la 10 10 if WRAPPERS 11 11 lib_LTLIBRARIES += libISSMModules.la 12 endif 13 else 14 noinst_LTLIBRARIES = libISSMCore.la libISSMOverload.la 15 if WRAPPERS 16 noinst_LTLIBRARIES += libISSMModules.la 17 endif 12 18 endif 13 19 #}}} … … 558 564 libISSMCore_la_FFLAGS = $(AM_FFLAGS) 559 565 566 if !WINDOWS 560 567 libISSMCore_la_LIBADD = $(PETSCLIB) $(TAOLIB) $(M1QN3LIB) $(PLAPACKLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPOOLESLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(OSLIBS) $(GSLLIB) $(ADOLCLIB) $(AMPILIB) $(METEOIOLIB) $(SNOWPACKLIB) 568 endif 561 569 562 570 if WRAPPERS … … 570 578 endif 571 579 libISSMModules_la_CXXFLAGS = $(ALLCXXFLAGS) 580 if !WINDOWS 572 581 if STANDALONE_LIBRARIES 573 582 libISSMModules_la_LIBADD = ./libISSMCore.la 574 583 else 575 584 libISSMModules_la_LIBADD = ./libISSMCore.la $(TRIANGLELIB) 585 endif 576 586 endif 577 587 endif … … 592 602 if WRAPPERS 593 603 libISSMModules_la_LDFLAGS = -static 594 endif 604 else 605 libISSMModules_la_LDFLAGS = 606 endif 607 else 608 libISSMCore_la_LDFLAGS = 609 libISSMOverload_la_LDFLAGS = 595 610 endif 596 611 … … 637 652 #Automatic differentiation (must be done at the end) {{{ 638 653 if ADIC2 654 if !WINDOWS 639 655 lib_LTLIBRARIES += libAD.la libISSMRose.la 656 else 657 noinst_LTLIBRARIES += libAD.la libISSMRose.la 658 endif 640 659 641 660 #ADIC2 library, for automatic differentiation -
issm/trunk-jpl/src/wrappers/matlab/Makefile.am
r19212 r19375 8 8 9 9 #matlab io{{{ 10 if !WINDOWS 10 11 lib_LTLIBRARIES = libISSMMatlab.la 12 else 13 noinst_LTLIBRARIES = libISSMMatlab.la 14 lib_LTLIBRARIES = 15 endif 11 16 12 17 io_sources= ./io/CheckNumMatlabArguments.cpp\ … … 20 25 #}}} 21 26 #api io{{{ 27 if !WINDOWS 22 28 lib_LTLIBRARIES += libISSMApi.la 29 else 30 noinst_LTLIBRARIES += libISSMApi.la 31 endif 23 32 24 33 api_sources= ./io/ApiPrintf.cpp … … 92 101 AM_CXXFLAGS += -D_HAVE_MATLAB_MODULES_ -fPIC 93 102 94 # This is a temporary fix to an issue with Libtool regarding linking against 95 # static libraries for Windows. Ideally, we would build all libraries as DLLs 96 # and and avoid this workaround which removes the dependency of ISSM libraries 97 # from the perspective of our build system. 103 deps += ./libISSMMatlab.la ../../c/libISSMModules.la ../../c/libISSMCore.la ./libISSMApi.la 104 98 105 if WINDOWS 99 AM_LDFLAGS += $(METISLIB) -Wl,./.libs/libISSMMatlab.lib -Wl,./../../c/.libs/libISSMModules.lib -Wl,./../../c/.libs/libISSMCore.lib -Wl,././.libs/libISSMApi.lib 100 else 101 deps += ./libISSMMatlab.la ../../c/libISSMModules.la ../../c/libISSMCore.la ./libISSMApi.la 106 deps += $(METISLIB) 102 107 endif 103 108 … … 117 122 #}}} 118 123 # Module sources and dependencies {{{ 124 if !WINDOWS 119 125 libISSMMatlab_la_LIBADD = ./../../c/libISSMCore.la ./../../c/libISSMModules.la $(MPILIB) $(PETSCLIB) $(GSLLIB) $(PROJ4LIB) $(MATHLIB) $(MEXLIB) 126 endif 120 127 121 128 if STANDALONE_LIBRARIES
Note:
See TracChangeset
for help on using the changeset viewer.