From 8ab308d9ddc34361ebf078d3d954875387445498 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 22 Nov 2017 15:21:12 -0800 Subject: [PATCH 1/2] qb: Honor the --build option. This makes some distros happy even if it does nothing. --- qb/qb.libs.sh | 1 + qb/qb.params.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index 79270c04e6..05935a4a4a 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -230,6 +230,7 @@ create_config_make() echo "INCLUDE_DIRS = $INCLUDE_DIRS" echo "LIBRARY_DIRS = $LIBRARY_DIRS" echo "PACKAGE_NAME = $PACKAGE_NAME" + echo "BUILD = $BUILD" echo "PREFIX = $PREFIX" while [ "$1" ]; do diff --git a/qb/qb.params.sh b/qb/qb.params.sh index 189727c9ea..5d16647806 100644 --- a/qb/qb.params.sh +++ b/qb/qb.params.sh @@ -34,6 +34,7 @@ General options: EOF print_help_option "--prefix=PATH" "Install path prefix" print_help_option "--global-config-dir=PATH" "System wide config file prefix" + print_help_option "--build=BUILD" "The build system (no-op)" print_help_option "--host=HOST" "call HOST-gcc instead of gcc; can be used for cross compilation" print_help_option "--help" "Show this help" @@ -83,6 +84,7 @@ parse_input() # Parse stuff :V case "$1" in --prefix=*) PREFIX=${1##--prefix=};; --global-config-dir=*) GLOBAL_CONFIG_DIR=${1##--global-config-dir=};; + --build=*) BUILD="${1#*=}";; --host=*) CROSS_COMPILE=${1##--host=}-;; --enable-*) opt_exists "${1##--enable-}" "$1" From e82502f80a99cdd2ba3bc7719293d479c6d25f0a Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 22 Nov 2017 15:33:35 -0800 Subject: [PATCH 2/2] qb: Document syntax better. --- qb/qb.params.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qb/qb.params.sh b/qb/qb.params.sh index 5d16647806..d574c60057 100644 --- a/qb/qb.params.sh +++ b/qb/qb.params.sh @@ -35,7 +35,7 @@ EOF print_help_option "--prefix=PATH" "Install path prefix" print_help_option "--global-config-dir=PATH" "System wide config file prefix" print_help_option "--build=BUILD" "The build system (no-op)" - print_help_option "--host=HOST" "call HOST-gcc instead of gcc; can be used for cross compilation" + print_help_option "--host=HOST" "Cross-compile with HOST-gcc instead of gcc" print_help_option "--help" "Show this help" echo ""