Using CVS Autoconf & CVS multi-lingual libtool checked out today,
configure guesses wrong on gcc PIC flags under Solaris 2.6:

checking for gcc option to produce PIC... -KPIC -DPIC
checking if gcc PIC flag -KPIC -DPIC works... yes
checking if gcc static flag -Bstatic works... yes

ltconfig:675:checking for gcc option to produce PIC
ltconfig:684:checking that gcc PIC flag -KPIC -DPIC works.
ltconfig:694: gcc -c -g -O2 -Wall -KPIC -DPIC -DPIC  conftest.c 1>&5
gcc: unrecognized option `-KPIC'
ltconfig:746: checking if gcc static flag -Bstatic works
ltconfig:755: gcc -o conftest -g -O2 -Wall  -L/usr/local/lib
-R/usr/local/lib -Bstatic conftest.
c  1>&5
conftest.c:1: warning: return-type defaults to `int'
gcc: file path prefix `static' never used

This leads to later (serious) warnings:

gcc: unrecognized option `-KPIC'

Shared libraries won't work ...

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED]
http://www.simplesystems.org/users/bfriesen


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to