public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix
Date: Thu, 22 Apr 2010 02:00:00 -0000	[thread overview]
Message-ID: <20100422020055.25698.qmail@sourceware.org> (raw)
In-Reply-To: <bug-43839-12293@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from howarth at nitro dot med dot uc dot edu  2010-04-22 02:00 -------
This almost works...

Index: testsuite/Makefile.in
===================================================================
--- testsuite/Makefile.in       (revision 158624)
+++ testsuite/Makefile.in       (working copy)
@@ -401,6 +401,7 @@
        @echo 'set host_triplet $(host_triplet)' >>site.tmp
        @echo 'set target_alias "$(target_alias)"' >>site.tmp
        @echo 'set target_triplet $(target_triplet)' >>site.tmp
+       @echo 'set libiconv "$(LIBICONV)"' >>site.tmp
        @echo '## All variables above are generated by configure. Do Not Edit
##' >>site.tmp
        @test ! -f site.exp || \
          sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
Index: testsuite/libjava.jni/jni.exp
===================================================================
--- testsuite/libjava.jni/jni.exp       (revision 158624)
+++ testsuite/libjava.jni/jni.exp       (working copy)
@@ -251,6 +251,7 @@
 }

 proc gcj_jni_get_cxxflags_invocation {} {
+  global libiconv
   global LIBJAVA
   if [info exists LIBJAVA] {
       set libjava $LIBJAVA;
@@ -267,7 +268,7 @@
   # to just make the linker find libgcc using -L options.
   # Similar logic applies to libgcj.
   if { [istarget "*-*-darwin*"] } {
-    lappend cxxflags -shared-libgcc -lgcj -liconv
+    lappend cxxflags "-shared-libgcc -lgcj $libiconv"
   }

   if { [istarget "*-*-solaris*"] } {

However it ends up compiling...

xecuting on host:
/sw/src/fink.build/gcc46-4.5.999-20100421/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc46-4.5.999-20100421/darwin_objdir/gcc/
/sw/src/fink.build/gcc46-4.5.999-20100421/gcc-4.6-20100421/libjava/testsuite/libjava.jni/invocation/PR16923.c
  -bind_at_load -multiply_defined suppress -I. -I..
-I/sw/src/fink.build/gcc46-4.5.999-20100421/gcc-4.6-20100421/libjava/testsuite/libjava.jni
-I/sw/src/fink.build/gcc46-4.5.999-20100421/gcc-4.6-20100421/libjava/testsuite/../include
-I/sw/src/fink.build/gcc46-4.5.999-20100421/gcc-4.6-20100421/libjava/testsuite/../classpath/include
-fdollars-in-identifiers
-L/sw/src/fink.build/gcc46-4.5.999-20100421/darwin_objdir/x86_64-apple-darwin10.3.0/./libjava/.libs
-ljvm {-shared-libgcc -lgcj -L/sw/lib -liconv}  -lm   -o PR16923    (timeout =
300)
xgcc: unrecognized option '-shared-libgcc -lgcj -L/sw/lib -liconv'^M
output is:
xgcc: unrecognized option '-shared-libgcc -lgcj -L/sw/lib -liconv'^M

I don't understand why $libiconv in jni.exp gets expanded as...

 {-shared-libgcc -lgcj -L/sw/lib -liconv}

instead of just...

-shared-libgcc -lgcj -L/sw/lib -liconv.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839


  parent reply	other threads:[~2010-04-22  2:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 18:37 [Bug java/43839] New: " mrs at gcc dot gnu dot org
2010-04-21 18:44 ` [Bug java/43839] " mrs at gcc dot gnu dot org
2010-04-21 18:52 ` mrs at gcc dot gnu dot org
2010-04-21 19:00 ` mrs at gcc dot gnu dot org
2010-04-21 19:02 ` mrs at gcc dot gnu dot org
2010-04-21 19:23 ` mrs at gcc dot gnu dot org
2010-04-21 19:26 ` mrs at gcc dot gnu dot org
2010-04-21 23:33 ` howarth at nitro dot med dot uc dot edu
2010-04-22  2:00 ` howarth at nitro dot med dot uc dot edu [this message]
2010-04-22 22:07 ` howarth at nitro dot med dot uc dot edu
2010-05-03 22:38 ` mrs at gcc dot gnu dot org
2010-06-09 17:21 ` mrs at gcc dot gnu dot org
     [not found] <bug-43839-8172@http.gcc.gnu.org/bugzilla/>
2010-10-06 18:54 ` mrs at gcc dot gnu.org
2010-10-06 19:42 ` mrs at gcc dot gnu.org
2010-10-06 19:46 ` mrs at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100422020055.25698.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).