From 39b34ab91b52e73531a2b549ae186bc3c757978c Mon Sep 17 00:00:00 2001 From: eb Date: Thu, 2 Oct 2008 02:33:09 +0000 Subject: fix for "double cross-compilation" git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9696 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/firmware/configure.gnu | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'usrp2/firmware') 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 -- cgit