summaryrefslogtreecommitdiff
path: root/mk/configure
diff options
context:
space:
mode:
authorsbd <sbd>2012-01-17 21:10:24 +0000
committersbd <sbd>2012-01-17 21:10:24 +0000
commit972dfef10976123d8a8e1a4723a503df50199e69 (patch)
tree1aa4b2ea592daea1abec754d7c7b6acbb81597c7 /mk/configure
parenteed3d637b91c0c6e3b42d7e64b3cdc5c21464158 (diff)
downloadpkgsrc-972dfef10976123d8a8e1a4723a503df50199e69.tar.gz
Add the GNU_CONFIGURE_LIBDIR variable, if defined it will be passed to gnu
configure scripts as the value of --libdir. On Linux x86_64 set GNU_CONFIGURE_LIBDIR to ${GNU_CONFIGURE_PREFIX}/lib, this will stop package trying to install into ${PREFIX}/lib64.
Diffstat (limited to 'mk/configure')
-rw-r--r--mk/configure/gnu-configure.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/configure/gnu-configure.mk b/mk/configure/gnu-configure.mk
index 1734fa167a9..e89dc56f016 100644
--- a/mk/configure/gnu-configure.mk
+++ b/mk/configure/gnu-configure.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gnu-configure.mk,v 1.10 2011/01/23 19:07:25 agc Exp $
+# $NetBSD: gnu-configure.mk,v 1.11 2012/01/17 21:10:24 sbd Exp $
_VARGROUPS+= gnu-configure
_USER_VARS.gnu-configure= # none
@@ -28,6 +28,10 @@ CONFIGURE_ENV+= lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+
GNU_CONFIGURE_PREFIX?= ${PREFIX}
CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX:Q}
+.if defined(GNU_CONFIGURE_LIBDIR) && !empty(GNU_CONFIGURE_LIBDIR)
+CONFIGURE_ARGS+= --libdir=${GNU_CONFIGURE_LIBDIR:Q}
+.endif
+
USE_GNU_CONFIGURE_HOST?= yes
.if !empty(USE_GNU_CONFIGURE_HOST:M[yY][eE][sS])
. if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])