Package: gcc-4.4 Version: 4.4.2-9 Severity: normal Tags: patch sid If "CC" is left unset, it defaults to "cc" and causes the compiler to be built to run on the build system instead of on the host.
Signed-off-by: Kyle Moffett <kyle.d.moff...@boeing.com> --- debian/rules2 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/debian/rules2 b/debian/rules2 index 623eefb..252c671 100644 --- a/debian/rules2 +++ b/debian/rules2 @@ -82,6 +82,8 @@ $(foreach v, CPPFLAGS CFLAGS CXXFLAGS FFLAGS LDFLAGS, $(if $(filter environment, ifneq ($(REVERSE_CROSS),yes) CC = $(if $(filter yes,$(with_ada)),gnatgcc,gcc) +else + CC = endif ifneq ($(distribution),Ubuntu) -- 1.7.0 -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
>From 759d752322be243ad06e0aef7568ae65252f4dda Mon Sep 17 00:00:00 2001 From: Kyle Moffett <kyle.d.moff...@boeing.com> Date: Mon, 26 Apr 2010 13:41:58 -0400 Subject: [PATCH 1/2] rules2: Fix "REVERSE_CROSS" build (host == target, host != build) Signed-off-by: Kyle Moffett <kyle.d.moff...@boeing.com> --- debian/rules2 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/debian/rules2 b/debian/rules2 index 623eefb..252c671 100644 --- a/debian/rules2 +++ b/debian/rules2 @@ -82,6 +82,8 @@ $(foreach v, CPPFLAGS CFLAGS CXXFLAGS FFLAGS LDFLAGS, $(if $(filter environment, ifneq ($(REVERSE_CROSS),yes) CC = $(if $(filter yes,$(with_ada)),gnatgcc,gcc) +else + CC = endif ifneq ($(distribution),Ubuntu) -- 1.7.0