summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-09 01:30:59 +0000
committerjlam <jlam@pkgsrc.org>2004-02-09 01:30:59 +0000
commitaf84b1575ab39f6f985bccc5643651502189d88d (patch)
treec28873ef408e6bbcdc1eb89233277a6acd412c0f /mk/bsd.pkg.mk
parent7db42b5bb03d7e36bfb15fcdc6c2ef3953372bc3 (diff)
downloadpkgsrc-af84b1575ab39f6f985bccc5643651502189d88d.tar.gz
We need the full path to the libtool that needs to be invoked when we
use LIBTOOL_OVERRIDE. In the buildlink[23] case, that is supposed to be the one in ${BUILDLINK_DIR}. Create new private variables _LIBTOOL and _SHLIBTOOL to hold these paths.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk17
1 files changed, 13 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index bade51bf445..31e415dad38 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1380 2004/02/08 10:39:35 seb Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1381 2004/02/09 01:30:59 jlam Exp $
#
# This file is in the public domain.
#
@@ -367,8 +367,17 @@ LIBTOOL_REQD= ${_OPSYS_LIBTOOL_REQD}
.else
LIBTOOL_REQD?= 1.4.20010614nb11
.endif
+#
+# PKG_LIBTOOL is the path to the libtool script installed by libtool-base.
+# _LIBTOOL is the path the libtool used by the build, which could be the
+# path to a libtool warpper script.
+# LIBTOOL is the publicly-readable variable that should be used by
+# Makefiles to invoke the proper libtool.
+#
PKG_LIBTOOL?= ${LOCALBASE}/bin/libtool
PKG_SHLIBTOOL?= ${LOCALBASE}/bin/shlibtool
+_LIBTOOL?= ${PKG_LIBTOOL}
+_SHLIBTOOL?= ${PKG_SHLIBTOOL}
LIBTOOL?= ${PKG_LIBTOOL}
SHLIBTOOL?= ${PKG_SHLIBTOOL}
.if defined(USE_LIBTOOL)
@@ -2308,7 +2317,7 @@ do-ltconfig-override:
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${ltconfig} ]; then \
${RM} -f ${ltconfig}; \
- ${ECHO} "${RM} -f libtool; ${LN} -s ${PKG_LIBTOOL} libtool" \
+ ${ECHO} "${RM} -f libtool; ${LN} -s ${_LIBTOOL} libtool" \
> ${ltconfig}; \
${CHMOD} +x ${ltconfig}; \
fi
@@ -2385,7 +2394,7 @@ do-libtool-override:
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${libtool} ]; then \
(${ECHO} '#!${CONFIG_SHELL}'; \
- ${ECHO} 'exec ${PKG_LIBTOOL} "$$@"'; \
+ ${ECHO} 'exec ${_LIBTOOL} "$$@"'; \
) > ${libtool}.override; \
if [ -x ${libtool} ]; then \
${CHMOD} +x ${libtool}.override; \
@@ -2399,7 +2408,7 @@ do-libtool-override:
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${libtool} ]; then \
${RM} -f ${libtool}; \
- ${LN} -sf ${PKG_SHLIBTOOL} ${libtool}; \
+ ${LN} -sf ${_SHLIBTOOL} ${libtool}; \
fi
. endfor
. endif