summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/buildsystem.sh3
-rw-r--r--lib/buildsystem/autoconf.sh5
-rw-r--r--src/oh-autoconfigure.sh3
3 files changed, 11 insertions, 0 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh
index 6819688..0f9b8b0 100644
--- a/lib/buildsystem.sh
+++ b/lib/buildsystem.sh
@@ -66,6 +66,9 @@ oh_set_buildsystem_option()
'build-system')
_OH_BUILDSYSTEM_SYSTEM="${_ohsbso_value}"
;;
+ 'target-arch')
+ _OH_BUILDSYSTEM_TARGET_ARCH="${_ohsbso_value}"
+ ;;
*)
_oh_return 125
return ${?}
diff --git a/lib/buildsystem/autoconf.sh b/lib/buildsystem/autoconf.sh
index 39d26d5..a1ae3ea 100644
--- a/lib/buildsystem/autoconf.sh
+++ b/lib/buildsystem/autoconf.sh
@@ -40,6 +40,11 @@ _oh_autoconf_configure()
--host='$(oh_buildsystem_arch \
"${OPK_HOST_ARCH}" 'autoconf')'"
fi
+ if [ -n "${_OH_BUILDSYSTEM_TARGET_ARCH}" ]; then
+ _ohbsbac_arch_opts="${_ohbsbac_arch_opts}
+ --target='$(oh_buildsystem_arch \
+ "${_OH_BUILDSYSTEM_TARGET_ARCH}" 'autoconf')'"
+ fi
"${_OH_BUILDSYSTEM_SOURCE_DIR}/configure" \
--prefix='/usr' \
diff --git a/src/oh-autoconfigure.sh b/src/oh-autoconfigure.sh
index cef8e7f..7e28b3e 100644
--- a/src/oh-autoconfigure.sh
+++ b/src/oh-autoconfigure.sh
@@ -35,6 +35,9 @@ main()
B)
oh_set_buildsystem_option 'build-dir' "${OPTARG}"
;;
+ T)
+ oh_set_buildsystem_option 'target-arch' "${OPTARG}"
+ ;;
?)
ob_error "$(ob_get_msg 'bad_opt')"
exit 1