diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-08-19 16:31:31 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-08-19 16:31:31 +0200 |
commit | 31336db7a7bc46636dc296684ada419463cab232 (patch) | |
tree | 73b63a58fb67de7483d1fa08458bd9ad8b9c48f8 | |
parent | 3384ee7119222a6230c983dbdcbaf2ac2d6f92fb (diff) |
build: configure: Properly encapsulate strings
This fixes the following errors when running configure e.g. inside the
OpenEmbedded environment:
./configure: line 23: [: too many arguments
./configure: line 24: [: i586-oe-linux-ld: binary operator expected
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,9 +20,9 @@ HAVE_TPACKET3=0 # use "CROSS_COMPILE=<prefix> SYSROOT=<path> ./configure && make" for cross compilation -[ -z $CC ] && CC="${CROSS_COMPILE}gcc" -[ -z $LD ] && LD="${CROSS_COMPILE}gcc" -[ -z $STRIP ] && STRIP="${CROSS_COMPILE}strip" +[ -z "$CC" ] && CC="${CROSS_COMPILE}gcc" +[ -z "$LD" ] && LD="${CROSS_COMPILE}gcc" +[ -z "$STRIP" ] && STRIP="${CROSS_COMPILE}strip" if [ "x$SYSROOT" != "x" ] ; then PKG_CONFIG_PATH="$SYSROOT/usr/lib/pkgconfig:$PKG_CONFIG_PATH" fi |