From: Ralf Wildenhues Date: Sun, 23 Nov 2008 08:13:13 +0000 (+0100) Subject: Fix matching of Sun Fortran compiler on Linux. X-Git-Tag: v2.2.7b~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76fed6e12b3dfe8d2ed26f0aa8dda3ce4a636bac;p=thirdparty%2Flibtool.git Fix matching of Sun Fortran compiler on Linux. * 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index cd1b1fa67..06d08eea7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-11-23 Ralf Wildenhues + + Fix matching of Sun Fortran compiler on Linux. + * 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. + 2008-11-21 Charles Wilson Fix --verbose option; add new --no-{silent|quiet|verbose} options. diff --git a/THANKS b/THANKS index d37d26489..387a07e86 100644 --- a/THANKS +++ b/THANKS @@ -88,6 +88,7 @@ Edouard G. Parmelan Edouard.Parmelan@France.NCR.COM Erez Zadok ezk@shekel.mcl.cs.columbia.edu Eric Estievenart eric@via.ecp.fr + Ethan Mallove ethan.mallove@sun.com Frank Ch. Eigler fche@cygnus.com Fred Cox sailorfred@yahoo.com H.J. Lu hjl@gnu.org diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 35d7d5c64..bb2e6effd 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -3941,17 +3941,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 ;;