debian/rules.real: Specify CROSS_COMPILE.

svn path=/dists/trunk/linux-2.6/; revision=6040
This commit is contained in:
Bastian Blank 2006-03-03 15:23:41 +00:00
parent af103c7938
commit a3709b14c1
1 changed files with 10 additions and 5 deletions

15
debian/rules.real vendored
View File

@ -42,13 +42,18 @@ endif
ifdef KPKG_SUBARCH
kpkg_image += --subarch '$(KPKG_SUBARCH)'
endif
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
kpkg_image += --cross-compile='$(DEB_HOST_GNU_TYPE)'
endif
setup_env := env -u ABINAME -u ARCH -u SUBARCH -u FLAVOUR -u VERSION -u LOCALVERSION
setup_makeflags =
ifdef COMPILER
setup_makeflags += CC="$$$$(CROSS_COMPILE)$(COMPILER)"
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
setup_makeflags += CROSS_COMPILE="$(DEB_HOST_GNU_TYPE)-"
ifdef COMPILER
setup_makeflags += CC="$(DEB_HOST_GNU_TYPE)-$(COMPILER)"
endif
kpkg_image += --cross-compile='$(DEB_HOST_GNU_TYPE)'
else
ifdef COMPILER
setup_makeflags += CC="$(COMPILER)"
endif
endif
setup_env += MAKEFLAGS='$(setup_makeflags)'