From 514391b4d8ed1de938a271375b5e95696584368c Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 20 Oct 2017 20:44:28 -0700 Subject: [PATCH] qb: Remove the leading whitespace from $INCLUDE_DIRS and $LIBRARY_DIRS. --- qb/qb.libs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index b0ce0bd1e8..8c52ac01c1 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -14,10 +14,14 @@ add_define_make() { echo "$1=$2" >> "$MAKEFILE_DEFINES";} add_include_dirs() -{ while [ "$1" ]; do INCLUDE_DIRS="$INCLUDE_DIRS -I$1"; shift; done;} +{ while [ "$1" ]; do INCLUDE_DIRS="$INCLUDE_DIRS -I$1"; shift; done + INCLUDE_DIRS="${INCLUDE_DIRS#* }" +} add_library_dirs() -{ while [ "$1" ]; do LIBRARY_DIRS="$LIBRARY_DIRS -L$1"; shift; done;} +{ while [ "$1" ]; do LIBRARY_DIRS="$LIBRARY_DIRS -L$1"; shift; done + LIBRARY_DIRS="${LIBRARY_DIRS#* }" +} check_lib() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = headers { tmpval="$(eval echo \$HAVE_$1)"