diff options
Diffstat (limited to 'lib/buildsystem/autoconf.sh')
-rw-r--r-- | lib/buildsystem/autoconf.sh | 12 |
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' \ |