Is there a recommended way to modify libtool (I'm looking at 1.5.22) such
that PIC flags are set based on compiler *version*?
The Sun Studio 11 compilers (C and C++) still accept -KPIC, but it's marked
in the manual as obsolete and not to be used (and probably has been for a
few revisions of the compiler). The manual recommends instead using
-xcode=pic32 , which, just to make things a bit more interesting, only
works on sparc (not x86 or x86_64).
That leaves us with three cases:
- sparc*-sun-solaris* with an "old" version of Workshop/Forte/Studio
compiler:
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- sparc*-sun-solaris* with W/F/S compiler newer than some version (I know
this works with the 6u2 compiler, which reports its version as 5.3)
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-xcode=pic32'
- x86*-*-solaris* with W/F/S compiler, any version:
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
If someone can provide some guidance on how to approach this, I'll send
along a patch.
Tim
--
Tim Mooney [EMAIL PROTECTED]
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool