This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Way to install only shared libraries
- From: Assar Westerlund <assar at kth dot se>
- To: Stephen Torri <storri at sbcglobal dot net>
- Cc: Automake <automake at gnu dot org>
- Cc: Autoconf List <autoconf at gnu dot org>
- Date: 29 May 2003 17:14:31 -0400
- Subject: Re: Way to install only shared libraries
- References: <1054222638.26634.30.camel@base>
Stephen Torri <storri@sbcglobal.net> writes:
> I am on a project that would like to only install shared library files
> (.so) but not the .la files. I tried to put AC_DISABLED_STATIC and then
> AM_DISABLED_STATIC into the configure to do this. Neither declaration
> worked. Is there a method for doing what we want?
There is no good method. You could do any of these:
a) add:
install-exec-hook:
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
rm $(DESTDIR)$(libdir)/$$p; \
done
to your Makefile.am
b) override install-libLTLIBRARIES but that's uglier.
c) add an option to libtool to not install the .la file and then have
you Makefile.am use that.