Hi, answering my own question, after digging around in the makefiles:
Automake uses the variables AM_LIBTOOLFLAGS and per target variabes mylibrary_la_LIBTOOLFLAGS which allow passing of flags to libtool. So, the following line indeed prevented the building of the static objects. libXrdOfs_la_LIBTOOLFLAGS = --tag=disable-static The only question remaining is whether that is the recommended way to do it, since I can find nothing in the documentation about these variables. Derek On Thursday 07 June 2007 10:07, Derek Feichtinger wrote: > Hi, > > I am building a whole bunch of loadable modules that do not use libtdl. I > would like to completely disable the building of static objects to speed up > the build. However, I need to do this on a per library (module) basis, > since the project also has a number of regular libraries, so defining this > with the global switch is out of the question. > > Searching through the archives I found the --tag=disable-static option to > libtool which works fine if I use libtool in compile mode directly. > But how can I pass this (or anything which does the same) through automake > to libtool? If I include it in xyz_LDFLAGS it is called in libtool link > mode, which is useless. If I try to pass it in CFLAGS, it seems to get > masked, so that it is not interpreted by libtool, but by the compiler > (which probably is normally wanted). > > Thanks for any help on this, > > Derek -- Dr. Derek Feichtinger Tel: +41 56 310 47 33 AIT Group email: [EMAIL PROTECTED] PSI CH-5232 Villigen PSI _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
