qb: Honor the --build option.

This makes some distros happy even if it does nothing.
This commit is contained in:
orbea 2017-11-22 15:21:12 -08:00
parent f0becad9d9
commit 8ab308d9dd
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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"