public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: java-patches@gcc.gnu.org
Subject: Re: [patch] Disable static build for libjava
Date: Thu, 07 Jul 2011 17:56:00 -0000	[thread overview]
Message-ID: <4E15F34D.7050800@redhat.com> (raw)
In-Reply-To: <4E15E6AF.4050508@cavium.com>

On 07/07/11 18:02, David Daney wrote:
> On 07/07/2011 09:57 AM, Matthias Klose wrote:
>> On 07/07/2011 06:51 PM, David Daney wrote:
>>> On 07/07/2011 09:27 AM, Matthias Klose wrote:
>>>> As discussed at the Google GCC gathering, disable the build of static libraries
>>>> in libjava, which should cut the build time of libjava by 50%.  The static
>>>> libjava build isn't useful out of the box, and I don't see it packaged by Linux
>>>> distributions either.
>>>>
>>>> The AC_PROG_LIBTOOL check is needed to get access to the enable_shared macro.
>>>> I'm unsure about the check in the switch construct. Taken from libtool.m4, and
>>>> determining the value of enable_shared_with_static_runtimes.
>>>>
>>>> Ok for the trunk?
>>>>
>>>> 2011-07-07  Matthias Klose<doko@ubuntu.com>
>>>>
>>>>           * Makefile.def (target_modules/libjava): Pass
>>>>           $(libjava_disable_static).
>>>>           * configure.ac: Check for libtool, pass --disable-static
>>>>           in libjava_disable_static.
>>>>           * Makefile.in: Regenerate.
>>>>           * configure: Likewise.
>>>>
>>>
>>> My autoconf fu is not what it used to be.  It is fine if static libraries are
>>> disabled by default, but it should be possible to enable them from the configure
>>> command line.  It is unclear to me if this patch does that.
>>
>> no. I assume an extra option --enable-static-libjava would be needed.
> 
> Not being a libjava maintainer, I cannot force you to add something like 
> that as part of the patch, but I think it would be a good idea.

I think so.

Andrew.

  reply	other threads:[~2011-07-07 17:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-07 16:28 Matthias Klose
2011-07-07 16:51 ` David Daney
2011-07-07 16:58   ` Matthias Klose
2011-07-07 17:02     ` David Daney
2011-07-07 17:56       ` Andrew Haley [this message]
2011-07-07 20:22         ` Matthias Klose
2011-07-07 20:27           ` Jakub Jelinek
2011-07-07 20:36             ` Ralf Wildenhues
2011-07-09 15:38               ` Matthias Klose
2011-07-11 12:47                 ` Andrew Haley
2011-07-16  6:07                 ` Ralf Wildenhues

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=4E15F34D.7050800@redhat.com \
    --to=aph@redhat.com \
    --cc=java-patches@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).