From: Ralf Wildenhues Date: Sun, 28 Feb 2010 12:38:34 +0000 (+0100) Subject: Detect Sun compiler suite with 'sun'-prefixed names. X-Git-Tag: v2.2.7b~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5ca75c82dfb86fb66d69d6ff62ac16a5bdcc8e0;p=thirdparty%2Flibtool.git Detect Sun compiler suite with 'sun'-prefixed names. * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LANG_CXX_CONFIG) (_LT_SYS_HIDDEN_LIBDEPS) [solaris]: Accept compiler names sunCC, sunf77, sunf90, sunf95 in addition to CC, f77, f90, f95. * NEWS: Update. Report by Vadim Zeitlin. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 19873a181..0e5d92c00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-02-28 Ralf Wildenhues + + Detect Sun compiler suite with 'sun'-prefixed names. + * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LANG_CXX_CONFIG) + (_LT_SYS_HIDDEN_LIBDEPS) [solaris]: Accept compiler names sunCC, + sunf77, sunf90, sunf95 in addition to CC, f77, f90, f95. + * NEWS: Update. + Report by Vadim Zeitlin. + 2010-02-28 Pierre Ossman (tiny change) Ralf Wildenhues diff --git a/NEWS b/NEWS index 00ab5c14d..ac5a40c54 100644 --- a/NEWS +++ b/NEWS @@ -65,6 +65,7 @@ New in 2.2.8 2010-??-??: git version 2.2.7a, Libtool team: just as it is when linking libraries through the compiler driver. - Symbol versioning works with the GNU gold linker now. - Fixes for detection of shared library dependencies on MinGW systems. + - Fixed Sun compiler detection on Solaris with sunCC, sunf77 etc. names. * Miscellaneous changes: diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index f99e618f1..677505d65 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -3823,7 +3823,7 @@ m4_if([$1], [CXX], [ ;; solaris*) case $cc_basename in - CC*) + CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' @@ -4107,7 +4107,7 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in - f77* | f90* | f95*) + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; @@ -6255,7 +6255,7 @@ if test "$_lt_caught_CXX_error" != yes; then solaris*) case $cc_basename in - CC*) + CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' @@ -6618,7 +6618,7 @@ linux*) solaris*) case $cc_basename in - CC*) + CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as