From 1527f5263a5f7253da5e9668fa0167d50c191239 Mon Sep 17 00:00:00 2001 From: sbd Date: Thu, 26 Jan 2012 06:33:43 +0000 Subject: Add SET_LIBDIR variable which if non-empty will set GNU_CONFIGURE_LIBDIR to the default libdir (and there for be passed to ./configure), this is the best way to deal with the 'lib64' problem on x86_64-linux systems (with most some packages). Also add SET_LIBDIR, GNU_CONFIGURE_LIBDIR, and GNU_CONFIGURE_LIBSUBDIR to _PKG_VARS.gnu-configure --- mk/configure/gnu-configure.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/configure/gnu-configure.mk b/mk/configure/gnu-configure.mk index 40683024f51..0dcc9da6d09 100644 --- a/mk/configure/gnu-configure.mk +++ b/mk/configure/gnu-configure.mk @@ -1,8 +1,9 @@ -# $NetBSD: gnu-configure.mk,v 1.12 2012/01/17 21:19:43 sbd Exp $ +# $NetBSD: gnu-configure.mk,v 1.13 2012/01/26 06:33:43 sbd Exp $ _VARGROUPS+= gnu-configure _USER_VARS.gnu-configure= # none _PKG_VARS.gnu-configure= GNU_CONFIGURE GNU_CONFIGURE_PREFIX \ + SET_LIBDIR GNU_CONFIGURE_LIBDIR GNU_CONFIGURE_LIBSUBDIR \ GNU_CONFIGURE_INFODIR GNU_CONFIGURE_MANDIR \ CONFIGURE_HAS_MANDIR CONFIGURE_HAS_INFODIR \ OVERRIDE_DIRDEPTH.configure \ @@ -30,6 +31,8 @@ CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX:Q} .if defined(GNU_CONFIGURE_LIBSUBDIR) && !empty(GNU_CONFIGURE_LIBSUBDIR) GNU_CONFIGURE_LIBDIR= ${GNU_CONFIGURE_PREFIX}/lib/${GNU_CONFIGURE_LIBSUBDIR} +.elif defined(SET_LIBDIR) && !empty(SET_LIBDIR) +GNU_CONFIGURE_LIBDIR= ${GNU_CONFIGURE_PREFIX}/lib .endif .if defined(GNU_CONFIGURE_LIBDIR) && !empty(GNU_CONFIGURE_LIBDIR) CONFIGURE_ARGS+= --libdir=${GNU_CONFIGURE_LIBDIR:Q} -- cgit v1.2.3