This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: I hate to ask this question (.la files and depends)


I tried gcc-help on this one, but didn't have any luck.

--
I'm sure it's been asked before, however, the only thing I could find that
came close was from last August in the archives, so here goes:

I have read there are some paths from the build tree, etc that get added to
.la files unnecessarily when building gcc. I have also heard this is a
libtool 'side-effect'. I would never have noticed unless I started to see
libtool-created links that contained HUNDREDS of references to gcc_s, gcc,
c, and m, among other things.

Here's what my /usr/lib/libstdc++.la depend line looks like:

# Libraries that this one depends upon.
dependency_libs=' -L/usr/local/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/
src -L/usr/local/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lm 
-lm -lm -L/usr/local/src/gcc-build/gcc -L/usr/lib/gcc-lib/i686-pc-linux-gnu/
3.0.3 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../.. -lgcc_s -lgcc -lc 
-lgcc_s -lgcc -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc'

I have two, rather obvious questions.

1.) What can I get rid of in here besides the build tree dirs? What about
the /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../.. which could just as
easily read /usr/lib? What files should I be correcting (if any) besides
libstdc++.la?

2.) I also see this alot:
libtool: link: warning:
`/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../libstdc++.la' seems to be
moved
What does this mean?

Once again, I hate to ask what seems like such an elementary question, but
to be honest, I have never updated my gcc from source before. I did read the
INSTALL docs and looked hard in the archives first, I promise!

Thanks for your help,
James

Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with:
../gcc-3.0.3/configure --prefix=/usr --mandir=/usr/share/man --enable-thread
s=posix
Thread model: posix
gcc version 3.0.3

I am using libstdc++ 3.0.95 (3.0.3 version), not sure that it matters :)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]