[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Note on --enable-shared
From: |
Alexandre Oliva |
Subject: |
Re: Note on --enable-shared |
Date: |
23 Mar 2001 15:36:20 -0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
On Mar 22, 2001, Tom Tromey <address@hidden> wrote:
> configure with --enable-shared=libgcc,libgcj to enable just
> those shared libraries.
> However, it turns out that in this same situation, libgcj really needs
> to know whether a shared libgcc is being built.
> Ordinarily I would do this by looking at $enable_shared in configure.
> But it turns out I can't do this because AC_ENABLE_SHARED rewrites
> enable_shared.
Well, you can always copy its value before it's modified... Maybe
AC_ENABLE_SHARED should be modified so as to preserve the original
value elsewhere?
> (And incidentally this means there's no easy way to
> build two libraries in a package one shared and one not. Maybe that's
> a non-problem though.)
Well, there are --tag disable-shared and --tag disable-static, but
indeed, there's no easy way to define them on a per-library basis. If
that's what you want to do, I'd suggest splitting the package.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer address@hidden, redhat.com}
CS PhD student at IC-Unicamp address@hidden, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me