[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multi-lingual libtool & -KPIC

From: Bob Friesenhahn
Subject: multi-lingual libtool & -KPIC
Date: Sat, 4 Nov 2000 13:24:20 -0600 (CST)

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 Friesenhahn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]