From 11d3d0e4a22a657b709dbdc2dae832a5e38d1278 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 08 Nov 2012 12:56:40 -0500 Subject: Optionally use multiarch lib paths in packages. --- (limited to 'lib') diff --git a/lib/buildsystem/Makefile.in b/lib/buildsystem/Makefile.in index abc59ff..3138aff 100644 --- a/lib/buildsystem/Makefile.in +++ b/lib/buildsystem/Makefile.in @@ -24,9 +24,11 @@ srcdir = @srcdir@ prefix = @prefix@ libdir = @libdir@ libopkhelper = @libopkhelper@ +multiarch_libdir = @multiarch_libdir@ sed_script = s&@@PACKAGE_NAME@@&$(package_name)&;\ - s&@@PACKAGE_VERSION@@&$(package_version)&; + s&@@PACKAGE_VERSION@@&$(package_version)&;\ + s&@@MULTIARCH_LIBDIR@@&$(multiarch_libdir)&; .SUFFIXES: .SUFFIXES: .sh .sm 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' \ -- cgit v0.9.1