Our previous mails overlapped, sorry about that. * Ethan Mallove wrote on Thu, Nov 20, 2008 at 06:52:09PM CET: > > The above appears to be looking for a Fortran version string from the > C compiler, but it wouldn't match our version string anyway: > > $ f90 -V > f90: Sun Ceres Fortran 95 8.3 SunOS_sparc 2008/01/28
Ah, ok. Please try the patch below instead of yours, thanks. Do you mind being added to libtool/THANKS (includes email address)? > I'm still running into the Cstd/stlport4 issue with 2.2.6. That is, > this line appears in the libtool script: > > postdeps="-library=Cstd -library=Crun" Do you have the string " -library=stlport4 " in $CXX $CXXFLAGS? If not, then how can Libtool detect that you use stlport? Thanks, Ralf * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [ linux ]: Also match `Sun Ceres Fortran' compiler; reorder with C compiler matching. * THANKS: Update. Report by Ethan Mallove. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 7fbf965..d90c4f4 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -3947,17 +3947,17 @@ m4_if([$1], [CXX], [ ;; *) case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 + *Sun\ F* | *Sun*Fortran*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker + *Sun\ C*) + # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;;