When defining AC_LIBTOOL_PROG_COMPILER_PIC, the values libtool assigns
for SunStudio 11 and 12 compilers on Linux are not correct. The values should be
lt_prog_compiler_wl='-Wl,'
lt_prog_compiler_pic='-Kpic'
lt_prog_compiler_static='-Bstatic'
I attach a patch that should fix this problem. Applies to libtool 1.5.22.
Best regards,
Dmitri Chubarov
--
Siberian Branch of the Russian Academy of Sciences
Institute of Computational Technologies
630090 Novosibirsk, Russia
*** libtool.m4.orig 2007-05-12 15:18:02.000000000 +0700
--- libtool.m4 2007-05-12 16:42:10.000000000 +0700
***************
*** 4833,4838 ****
--- 4833,4844 ----
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;;
+ sunCC*)
+ # SunStudio C++
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
*)
;;
esac
***************
*** 5077,5082 ****
--- 5083,5094 ----
# All Alpha code is PIC.
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;;
+ suncc* | sunf77* | sunf90*)
+ # SunStudio compilers
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
esac
;;
_______________________________________________
Bug-libtool mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-libtool