FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 04-30-2010, 05:51 PM
Kyle Moffett
 
Default Bug#579779: debian/rules2: Fix REVERSE_CROSS build (host == target, host != build)

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.Moffett@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
 
Old 05-17-2010, 01:28 PM
Matthias Klose
 
Default Bug#579779: debian/rules2: Fix REVERSE_CROSS build (host == target, host != build)

On 30.04.2010 19:51, Kyle Moffett wrote:

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.Moffett@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)


the patch in this form breaks the native build



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4BF14498.80607@debian.org">http://lists.debian.org/4BF14498.80607@debian.org
 

Thread Tools




All times are GMT. The time now is 07:20 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org