summaryrefslogtreecommitdiff
path: root/usrp2/firmware/configure.gnu
diff options
context:
space:
mode:
Diffstat (limited to 'usrp2/firmware/configure.gnu')
-rwxr-xr-xusrp2/firmware/configure.gnu24
1 files changed, 22 insertions, 2 deletions
diff --git a/usrp2/firmware/configure.gnu b/usrp2/firmware/configure.gnu
index a63462a94..3420eced0 100755
--- a/usrp2/firmware/configure.gnu
+++ b/usrp2/firmware/configure.gnu
@@ -3,9 +3,29 @@
# wrapper to setup cross-compilation of firmware
#
-for v in CC CXX AR NM RANLIB STRIP F77 CPPFLAGS LDFLAGS
+for v in CC CXX AR NM RANLIB STRIP F77 CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
do
unset $v
done
-`dirname $0`/configure "$@" --host=mb
+args=
+for t in "$@"
+do
+ case "$t" in
+ (CC=*) ;;
+ (CXX=*) ;;
+ (AR=*) ;;
+ (NM=*) ;;
+ (RANLIB=*) ;;
+ (STRIP=*) ;;
+ (F77=*) ;;
+ (CFLAGS=*) ;;
+ (CXXFLAGS=*) ;;
+ (CPPFLAGS=*) ;;
+ (LDFLAGS=*) ;;
+ (*) args="$args $t" ;;
+ esac
+done
+
+
+`dirname $0`/configure $args --host=mb