This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


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

Re: ld for gcc and libgcj


> >From alias  Thu Apr 13 13:15:31 2000
> Date: Thu, 13 Apr 2000 13:14:37 +0100 (BST)
> From: Chris Dornan <cdornan@arm.com>
> 
> OK, from the sparc-sun-solaris2.7/zlib directory, I issued the command
> 
> gcc -v -shared  adler32.lo compress.lo crc32.lo deflate.lo gzio.lo infblock.lo infcodes.lo inffast.lo inflate.lo inftrees.lo infutil.lo trees.lo uncompr.lo zutil.lo  -lc  -Wl,-soname -Wl,libzgcj.so.0 -o .libs/libzgcj.so.0.0.0
> 
> with the results:
> 
> Reading specs from /export/home/cdornan/gnu/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
> /export/home/cdornan/gnu/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/collect2 [ ... ]
> ld: Software Generation Utilities - Solaris/ELF (3.0)

That's Sun's ld.  collect2 executes ld, and it's finding Sun's ld.

If you now run collect2 with verbose options you'll see what ld
command is used.

Try adding "-Wl,-v" to the command line above.

Andrew.

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