Skip to content

Commit

Permalink
qb: Explicitly word split libs and extralibs
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Oct 21, 2017
1 parent a943fab commit 0ff7e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qb/qb.libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ check_lib() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = head
fi
answer='no'
# echo -n "$ECHOBUF"
"$CC" -o "$TEMP_EXE" "$TEMP_C" $INCLUDE_DIRS $LIBRARY_DIRS $4 $CFLAGS $LDFLAGS $2 >>config.log 2>&1 && answer='yes'
"$CC" -o "$TEMP_EXE" "$TEMP_C" $INCLUDE_DIRS $LIBRARY_DIRS $(printf %s "$4") $CFLAGS $LDFLAGS $(printf %s "$2") >>config.log 2>&1 && answer='yes'
eval HAVE_$1="$answer"; echo "$ECHOBUF ... $answer"
rm "$TEMP_C" "$TEMP_EXE" >/dev/null 2>&1

Expand All @@ -65,7 +65,7 @@ check_lib_cxx() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 =
fi
answer='no'
# echo -n "$ECHOBUF"
"$CXX" -o "$TEMP_EXE" "$TEMP_CXX" $INCLUDE_DIRS $LIBRARY_DIRS $4 $CFLAGS $LDFLAGS $2 >>config.log 2>&1 && answer='yes'
"$CXX" -o "$TEMP_EXE" "$TEMP_CXX" $INCLUDE_DIRS $LIBRARY_DIRS $(printf %s "$4") $CFLAGS $LDFLAGS $(printf %s "$2") >>config.log 2>&1 && answer='yes'
eval HAVE_$1="$answer"; echo "$ECHOBUF ... $answer"
rm "$TEMP_CXX" "$TEMP_EXE" >/dev/null 2>&1
[ "$answer" = 'no' ] && {
Expand Down

0 comments on commit 0ff7e82

Please sign in to comment.