summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-08-19 16:31:31 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-08-19 16:31:31 +0200
commit31336db7a7bc46636dc296684ada419463cab232 (patch)
tree73b63a58fb67de7483d1fa08458bd9ad8b9c48f8
parent3384ee7119222a6230c983dbdcbaf2ac2d6f92fb (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-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index b02eb18..039858c 100755
--- a/configure
+++ b/configure
@@ -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