Changeset 1755

Show
Ignore:
Timestamp:
01/25/07 22:03:24 (2 years ago)
Author:
tg
Message:

the already-existing global ${HOSTCFLAGS} was not used when
determining ${HOST_CFLAGS} from ${CFLAGS} and setting a default;
use it (so that HOSTCFLAGS = HOST_CFLAGS) and the defaults

Files:

Legend:

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

    r1753 r1755  
    111111        @x="$$(echo 'f:\n\techo P:$${CFLAGS}\n.include <bsd.prog.mk>' | \ 
    112112            ${MAKE} -f - f EXPERIMENTAL=yes 2>/dev/null | grep '^P:' \ 
    113             2>/dev/null | sed 's/^P://')";
    114             echo "HOSTCFLAGS:=$${x:--O2 ${CFLAGS}}" | sed 's/ *$$//'
    115             >>lbin/prereq.mk 
     113            2>/dev/null | sed 's/^P://')"; y='${CFLAGS}';
     114            echo "HOSTCFLAGS:=$${x:-$${y:--Os -fno-ident -fwrapv}}" |
     115            sed 's/ *$$//' >>lbin/prereq.mk 
    116116        @echo 'LANGUAGE:=C' >>lbin/prereq.mk 
    117117        @echo 'LC_ALL:=C' >>lbin/prereq.mk 
  • trunk/freewrt/rules.mk

    r1753 r1755  
    6868export UNAME_S UNAME_R UNAME_M 
    6969 
    70 ifeq ($(strip ${CFLAGS}),) 
    71 CFLAGS:=                -Os -fno-ident -fwrapv 
    72 endif 
    73 HOST_CFLAGS:=           ${CFLAGS} 
     70HOST_CFLAGS:=           ${HOSTCFLAGS} 
    7471TARGET_CFLAGS:=         $(strip -Os -fno-ident ${TARGET_CFLAGS} -fwrapv -fhonour-copts) 
    7572