aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules.d/Makefile.inc
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-06-13 01:17:13 +0100
committerBen Hutchings <ben@decadent.org.uk>2016-06-13 02:06:19 +0100
commit0ad327058ff5e1890526f6bcc85382ef53c19047 (patch)
treec500451db1bef8eebfab5dc71c877f58e901cb4b /debian/rules.d/Makefile.inc
parenta7ebaf2684065a20680d9842827def22037377fd (diff)
downloadkernel_replicant_linux-0ad327058ff5e1890526f6bcc85382ef53c19047.tar.gz
kernel_replicant_linux-0ad327058ff5e1890526f6bcc85382ef53c19047.tar.bz2
kernel_replicant_linux-0ad327058ff5e1890526f6bcc85382ef53c19047.zip
Fix build rules for userland tools to support cross-building
Pass $(CROSS_COMPILE) or host GNU type through to upstream build rules. debian/rules.real: Filter tools packages by host arch, not build arch debian/rules.d/Makefile: Build the tools needed for headers_install in a separate subdirectory
Diffstat (limited to 'debian/rules.d/Makefile.inc')
-rw-r--r--debian/rules.d/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/rules.d/Makefile.inc b/debian/rules.d/Makefile.inc
index 2f05db4f321d..48f8c2e7ca1c 100644
--- a/debian/rules.d/Makefile.inc
+++ b/debian/rules.d/Makefile.inc
@@ -5,8 +5,8 @@ VPATH = $(top_rulesdir)/$(OUTDIR) $(top_srcdir)/$(OUTDIR)
SHELL = /bin/sh -e
-CC = gcc
-CXX = g++
+CC = $(CROSS_COMPILE)gcc
+CXX = $(CROSS_COMPILE)g++
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -Wall
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) \
-I$(top_srcdir)/$(OUTDIR) \