[cross] The package explicitly passes gcc as the compiler name which prevents cross compilation

Bug #623222 reported by Peter Pearse
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libffi (Ubuntu)
Undecided
Matthias Klose
Maverick
Undecided
Unassigned

Bug Description

debian/rules has gcc hard coded, rather than allow cross compilers to be used.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libffi5 3.0.9-1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Tue Aug 24 09:14:49 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: libffi

Related branches

Revision history for this message
Peter Pearse (peter-pearse) wrote :
Revision history for this message
Peter Pearse (peter-pearse) wrote :

Example debian/rules patch

tags: added: patch
Revision history for this message
Steve Langasek (vorlon) wrote :

Matthias, since you seem to be the maintainer of this package in Debian as well, could you review Peter's patch and consider applying it to libffi? It looks correct to me; all the biarch/triarch builds are left untouched, and for single-arch builds there should be no need to override CC.

(BTW, why not just set $(m32) in CFLAGS/CXXFLAGS, instead of overriding the compiler?)

Changed in libffi (Ubuntu):
assignee: nobody → Matthias Klose (doko)
Revision history for this message
Matthias Klose (doko) wrote :

> BTW, why not just set $(m32) in CFLAGS/CXXFLAGS, instead of overriding the compiler?

afaicr, the testsuite then fails for the biarch tests.

tags: added: cross
Matthias Klose (doko)
Changed in libffi (Ubuntu Maverick):
status: New → Won't Fix
assignee: Matthias Klose (doko) → nobody
Revision history for this message
Matthias Klose (doko) wrote :

didn't check when I fixed it, but it's at least in oneiric

Changed in libffi (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints