Changeset a2011ad in freewrt for build.mk


Ignore:
Timestamp:
Jun 12, 2006, 1:09:53 AM (20 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
8ec9389
Parents:
abfbcd7
Message:

Correctly determine HOSTCC and HOSTCFLAGS (from host make)
and pass them as CC/CFLAGS to the toolchain as well.

Now this at least goes as far as I suspected the first
breakage would be (on MirBSD) - autotools.

Detecting works by invoking $(MAKE) with a BSD-specific
makefile and just using $(HOSTCFLAGS) if that fails.
This works better on OpenBSD too, FWIW.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.mk

    rabfbcd7 ra2011ad  
    8080toolchain/%:
    8181        @$(TRACE) $@
    82         $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@)
     82        $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@) \
     83            CC='$(HOSTCC)' CFLAGS='$(HOSTCFLAGS)'
    8384
    8485#############################################################
Note: See TracChangeset for help on using the changeset viewer.