This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: libgcj versus libtool
DS --
X-Attribution: Tom
BCC: Tom Tromey <tromey@cygnus.com>
From: Tom Tromey <tromey@cygnus.com>
Date: 30 Jun 1999 12:20:08 -0600
Message-ID: <87wvwlr1nr.fsf@cygnus.com>
Lines: 43
X-Mailer: Gnus v5.5/Emacs 20.2
>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:
>> On Jun 29, 1999, Tom Tromey <tromey@cygnus.com> wrote:
>> In the Cygnus tree we use a short patch to libtool instead. This
>> works everywhere that libtool works.
Alexandre> Would you have that patch handy? It might speed things up :-)
Here is the rather ugly patch. You'd probably want to remove the
"CYGNUS LOCAL" markers.
1999-05-05 Tom Tromey <tromey@cygnus.com>
* ltmain.sh: Put `-B' options from command line into new CC.
Index: ltmain.in
===================================================================
RCS file: /cvs/cvsfiles/devo/libtool/ltmain.in,v
retrieving revision 1.15
retrieving revision 1.17
diff -u -r1.15 -r1.17
--- ltmain.in 1999/04/26 16:28:54 1.15
+++ ltmain.in 1999/05/04 21:12:09 1.17
@@ -606,7 +606,19 @@
link)
modename="$modename: link"
C_compiler="$CC" # save it, to compile generated C sources
+ # Always respect the CC configured in by ltconfig.
CC="$nonopt"
+ # CYGNUS LOCAL: tromey/java
+ # Add -B options to link line.
+ for arg
+ do
+ case "$arg" in
+ -B*)
+ CC="$CC $arg"
+ ;;
+ esac
+ done
+ # END CYGNUS LOCAL
case "$host" in
*-*-cygwin* | *-*-mingw* | *-*-os2*)
# It is impossible to link a dll without this setting, and