summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem/autoconf.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-08 12:56:40 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-08 12:56:40 (EST)
commit11d3d0e4a22a657b709dbdc2dae832a5e38d1278 (patch)
tree459e25ed9341e92ac4516bb59ca96fe30eaab945 /lib/buildsystem/autoconf.sh
parent8486d0197ae2f62317e960cdb91845f92ddea775 (diff)
Optionally use multiarch lib paths in packages.
Diffstat (limited to 'lib/buildsystem/autoconf.sh')
-rw-r--r--lib/buildsystem/autoconf.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/buildsystem/autoconf.sh b/lib/buildsystem/autoconf.sh
index 36b706e..9e76c1c 100644
--- a/lib/buildsystem/autoconf.sh
+++ b/lib/buildsystem/autoconf.sh
@@ -27,7 +27,7 @@ _oh_autoconf_can_configure()
_oh_autoconf_configure()
{
- _oh_local _ohbsbac_arch_opts _ohbsbac_rc
+ _oh_local _ohbsbac_arch_opts _ohbsbac_libdir _ohbsbac_rc
mkdir -p "${_OH_BUILDSYSTEM_BUILD_DIR}"
cd "${_OH_BUILDSYSTEM_BUILD_DIR}"
@@ -46,14 +46,20 @@ _oh_autoconf_configure()
"${_OH_BUILDSYSTEM_TARGET_ARCH}" 'autoconf')'"
fi
+ if [ '@@MULTIARCH_LIBDIR@@' = 'true' ]; then
+ _ohbsbac_libdir='${prefix}/lib/'"${OPK_HOST_ARCH}"
+ else
+ _ohbsbac_libdir='${prefix}/lib/'
+ fi
+
"${_OH_BUILDSYSTEM_SOURCE_DIR}/configure" \
--prefix='/usr' \
--bindir='${prefix}/bin' \
--sbindir='${prefix}/sbin' \
- --libexecdir='${prefix}/lib' \
+ --libexecdir="${_ohbsbac_libdir}" \
--sysconfdir='/etc' \
--localstatedir='/var' \
- --libdir='${prefix}/lib' \
+ --libdir="${_ohbsbac_libdir}" \
--includedir='${prefix}/include' \
--infodir='${prefix}/share/info' \
--mandir='${prefix}/share/man' \