Will bad things happen if -no_prelink is used in combination with CC
-ar? When GNU libtool creates an archive library which is comprised of
objects from other libtool archive libraries (convenience libraries),
it extracts the object files from the convenience libraries and adds
them to the archive library being created. When this is done, the .ii
files from the archive libraries being added are lost because the
object files are extracted to a temporary directory. So, C++
prelinking might fail.

It seems the easiest solution is adding -no_prelink to CC -ar.

I'm trying to find a solution to a build problem with kdepim-3.3.2 on
IRIX using the SGI C++ compiler:
...
/bin/sh ../libtool --mode=link --tag=CXX CC ...
rm -fr .libs/knotes_local.lax
mkdir .libs/knotes_local.lax
rm -fr .libs/knotes_local.lax/libknotesresources.a
mkdir .libs/knotes_local.lax/libknotesresources.a
(cd .libs/knotes_local.lax/libknotesresources.a && ar x
/opt/build/kdepim-3.3.2/knotes/./.libs/libknotesresources.a)
rm -fr .libs/knotes_local.lax/libknotesconfig.a
mkdir .libs/knotes_local.lax/libknotesconfig.a
(cd .libs/knotes_local.lax/libknotesconfig.a && ar x
/opt/build/kdepim-3.3.2/knotes/./.libs/libknotesconfig.a)
CC -ar -WR,-u -o .libs/knotes_local.a   resourcelocal_plugin.o
.libs/knotes_local.lax/libknotesresources.a/resourcemanager.o
.libs/knotes_local.lax/libknotesresources.a/resourcenotes.o
.libs/knotes_local.lax/libknotesresources.a/resourcelocal.o
.libs/knotes_local.lax/libknotesconfig.a/knoteconfig.o
.libs/knotes_local.lax/libknotesconfig.a/knotesglobalconfig.o
C++ prelinker: error: file
".libs/knotes_local.lax/libknotesconfig.a/ii_files/knoteconfig.ii" is
read-only

-- 
albert chin ([EMAIL PROTECTED])


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to