Changeset 59

Show
Ignore:
Timestamp:
06/13/06 13:18:44 (6 years ago)
Author:
tg
Message:

resolve a bad interaction between shell quoting
and shell evaluation of inside commands in the
$(HOSTCFLAGS) determination algorithm

it's a pity we have to be compatible to a lowest
common denominator of make and sh for all systems...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Makefile

    r58 r59  
    3434 
    3535VARS_TO_PASS=   HOSTCC='${CC}' MAKE='${GMAKE}' LC_ALL=C \ 
    36                 HOSTCFLAGS="$$(x=$$(echo \ 
     36                HOSTCFLAGS="$$(set +x; x=$$(echo \ 
    3737                    'f:\n\techo P:$${CFLAGS}\n.include <bsd.prog.mk>' | \ 
    3838                    ${MAKE} -f - f EXPERIMENTAL=yes 2>/dev/null | grep '^P:' \ 
     
    4343 
    4444v: prereq 
    45         @echo '${GMAKE_INV} all V=99' >>make.log 
    46         ${GMAKE_INV} all V=99 2>&1 | tee -a make.log 
     45        (set -x; ${GMAKE_INV} all V=99) 2>&1 | tee -a make.log 
    4746 
    4847verbose: prereq