This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc-v3: portability of 'ar' w/o file list?
On Tue, Dec 05, 2000 at 03:09:34PM -0200, Alexandre Oliva wrote:
> On Dec 5, 2000, Mark Mitchell <mark@codesourcery.com> wrote:
>
> > Another option would be to conditionalize the definition of SUBDIRS in
> > libstdc++-v3/Makefile.am to not even include libio when
> > GLIBCPP_NEED_LIBIO and GLIBCPP_NEED_WLIBIO are turned off. I don't
> > know if automake handles that, though.
>
> It does, and I'd prefer to have this solution even if libtool is
> eventually fixed to handle this situation, following your suggestion.
v3/Makefile.am already has:
AM_CONDITIONAL(GLIBCPP_NEED_LIBIO, test "$need_libio" = yes)
AM_CONDITIONAL(GLIBCPP_NEED_WLIBIO, test "$need_wlibio" = yes)
if test "$need_libio" = yes || test "$need_wlibio" = yes; then
libio_la=../libio/libio.la
else
libio_la=
fi
AC_SUBST(libio_la)
What are we missing? It looks like v3/libio/Makefile.am is still creating
a libio.la rule unconditionally, but I thought automake was supposed to
know better...? Or are we telling automake the wrong thing?
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.