This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc-v3: portability of 'ar' w/o file list?


On Dec  5, 2000, Phil Edwards <pedwards@disaster.jaj.com> wrote:

> Well, the patch below avoid building any kind of libio sources for me.

According to the automake manual, when you define SUBDIRS
conditionally, you it's a good idea to define DIST_SUBDIRS so that
`make dist' works.  But this is probably irrelevant here.

Another, possibly simpler alternative, is to define noinst_LTLIBRARIES
conditionally in libio/Makefile.am, using the same condition variable
you're adding here.

I found enclosing targets within conditions better than doing that
with directories, because, quite often, people will wonder why a
library or program doesn't get built, enter the sub-directory and
attempt to build it by hand, then ask in the mailing list of the
project why they got this odd error message :-)

Of course, not entering the sub-directory unless libio is needed is a
valid minor optimization of the build process, so I'm not recommending
against it, just suggesting some additional minor work that may save
us some user-support time in the future.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]