Subject: Re: using pkglibtool
To: None <tech-pkg@netbsd.org>
From: Kazuki Sakamoto <sakamoto@cec.co.jp>
List: tech-pkg
Date: 12/06/1999 18:28:19
tron@zhadum.de wrote:

 > Nice idea. But it has the disadvantage that "configure" will still waste
 > CPU cycles with configuring and building a custom "libtool".

hmm, yes...
I hope waste time is short that we can ignore from the whole.

 > There should be a method to specify the or more than one location of the
 > "libtool" binary.

LIBTOOLS_OVERRIDE=${WRKSRC}/libtool ${WRKSRC}/src2/libtool

--- bsd.pkg.mk.orig	Mon Dec  6 13:27:43 1999
+++ bsd.pkg.mk	Mon Dec  6 18:22:24 1999
@@ -1171,6 +1171,14 @@
 .if defined(USE_IMAKE)
 	${_PKG_SILENT}(${_PKG_DEBUG}cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} XPROJECTROOT=${X11BASE} ${XMKMF})
 .endif
+.if defined(USE_LIBTOOL) && defined(LIBTOOLS_OVERRIDE)
+.for libtool in ${LIBTOOLS_OVERRIDE}
+	${_PKG_SILENT}${_PKG_DEBUG}if [ -f ${libtool} ]; then \
+		${RM} -f ${libtool}; \
+		${LN} -s ${LIBTOOL} ${libtool}; \
+	fi
+.endfor
+.endif
 .endif
 
 # Build

sakamoto