Subject: Omitting static libraries from installed packages
To: None <tech-pkg@netbsd.org>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 02/17/2005 21:38:31
Hi all,

to save disk space, I would like to not install the static libraries 
lib/lib*.a. I tried that with the package devel/libidn, as it uses 
GNU_CONFIGURE and libtool.

I added CONFIGURE_ARGS+=--enable-static=no, and then, after doing "make 
configure", I ran "${WRKSRC}/libtool --features". The output is:

host: i386--netbsdelf
enable shared libraries
enable static libraries

Then I disabled the USE_LIBTOOL line in the package Makefile, and 
tadaaa, it works.


So why is the --disable-static option useless when USE_LIBTOOL is 
#defined in the Makefile?

Roland