]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Detect Sun compiler suite with 'sun'-prefixed names.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 28 Feb 2010 12:38:34 +0000 (13:38 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 28 Feb 2010 12:38:34 +0000 (13:38 +0100)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
libltdl/m4/libtool.m4

index 19873a18160791cc38b736960d974a15740593a4..0e5d92c00981df2f1eaa2f2d18662dca6d728d29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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  <ossman@ossman.lkpg.cendio.se>  (tiny change)
             Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
diff --git a/NEWS b/NEWS
index 00ab5c14df74b27f5c4689d345b7e2a3d31aa0dc..ac5a40c5407fe8f76aec4819899363e60d121290 100644 (file)
--- 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:
 
index f99e618f1c47728c45d44ec5fe19ba6877379bf2..677505d65675dd127f868b27857639410aacf035 100644 (file)
@@ -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