Changeset 8bbe128 in freewrt


Ignore:
Timestamp:
Jun 28, 2007, 2:58:35 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
5ed6f60
Parents:
671e142
Message:

oops, thinking error

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2986 afb5a338-a214-0410-bd46-81f09a774fd1

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mk/vars.mk

    r671e142 r8bbe128  
    5353KERNEL_CROSS:=          $(STAGING_TOOLS)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
    5454TARGET_CROSS:=          $(STAGING_TOOLS)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
    55 TARGET_CC:=             $(TARGET_COMPILER_PREFIX)$(TARGET_CROSS)gcc
    56 TARGET_CXX:=            $(TARGET_COMPILER_PREFIX)$(TARGET_CROSS)g++
     55TARGET_COMPILER_PREFIX?=${TARGET_CROSS}
     56TARGET_CC:=             ${TARGET_COMPILER_PREFIX}gcc
     57TARGET_CXX:=            ${TARGET_COMPILER_PREFIX}g++
    5758TARGET_CPPFLAGS+=       -isystem ${STAGING_DIR}/include \
    5859                        -isystem ${STAGING_DIR}/usr/include
  • tools/Makefile

    r671e142 r8bbe128  
    4848wrappers:
    4949ifneq ($(strip ${FWRT_USE_CCACHE}),)
    50         @for what in ${TARGET_CROSS}gcc ${TARGET_CROSS}g++; do \
     50        @for what in gcc g++; do \
    5151                if [[ ! -x ${TOPDIR}/lbin/ccache-$$what ]]; then \
    5252                        rm -f ${TOPDIR}/lbin/ccache-$$what; \
    53                         printf '#!/bin/sh\nexec ccache %s "$$@"\n' \
    54                             $$what >${TOPDIR}/lbin/ccache-$$what; \
     53                        printf '#!/bin/sh\nexec %s ${TARGET_CROSS}%s "$$@"\n' \
     54                            ccache $$what >${TOPDIR}/lbin/ccache-$$what; \
    5555                        chmod 0555 ${TOPDIR}/lbin/ccache-$$what; \
    5656                fi; \
Note: See TracChangeset for help on using the changeset viewer.