Changeset 1173

Show
Ignore:
Timestamp:
11/20/06 01:06:13 (2 years ago)
Author:
tg
Message:

experimental support for having CC="ccache gcc", etc.
reported by tntnet in IRC, not tested

Files:

Legend:

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

    r1155 r1173  
    124124            "1s#^.*\$$#TOPDIR:=$$TOPDIR#" | ed -s lbin/prereq.mk 
    125125        @env NO_ERROR=${NO_ERROR} bash scripts/scan-tools.sh 
     126        @cc='${CC}'; if test x"$$cc" = x"gcc"; then \ 
     127                ln -s $$(lbin/which "$$cc") lbin/gcc; \ 
     128        else \ 
     129                ( echo "#!$$(lbin/which bash)"; \ 
     130                  echo "exec $$cc" '"$$@"' ) >lbin/gcc; \ 
     131                chmod 555 lbin/gcc; \ 
     132        fi 
    126133        @ln -s $$(lbin/which ${CC}) lbin/gcc 
    127134        @${GMAKE_INV} tools/install-lbin