Should fix the problem with hanging CFLAGS and LDFLAGS of OOCD.
authorPiotr Esden-Tempski <piotr@esden.net>
Sat, 8 Jan 2011 03:17:07 +0000 (04:17 +0100)
committerPiotr Esden-Tempski <piotr@esden.net>
Sat, 8 Jan 2011 03:17:07 +0000 (04:17 +0100)
summon-arm-toolchain

index 2a12296..ff196e8 100755 (executable)
@@ -383,8 +383,8 @@ if [ ! -e ${STAMPS}/openocd-${OOCD}.build ]; then
     unpack openocd-${OOCD}
     cd build
     log "Configuring openocd-${OOCD}"
-    export CFLAGS="${OOCD_CFLAGS}"
-    export LDFLAGS="${OOCD_LDFLAGS}"
+    CFLAGS="${CFLAGS} ${OOCD_CFLAGS}" \
+    LDFLAGS="${LDFLAGS} ${OOCD_LDFLAGS}" \
     ../openocd-${OOCD}/configure --enable-maintainer-mode \
                       --prefix=${PREFIX} \
                       --enable-dummy \