Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 184711
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 157785
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Thibault Hild <thild@free.fr>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 184711 depends on: Show dependency tree
Bug 184711 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-07-09 10:45 0000
The make process is not autotools based and uses a makefile directly.
The makefile uses the gcc command as CC.
To make cross compiling work, I had to modify the Makefile this way:

--- Makefile.old        2007-07-08 06:59:03.000000000 +0200
+++ Makefile    2007-07-08 06:59:46.000000000 +0200
@@ -2,7 +2,7 @@
 # Makefile for dosfstools (mkdosfs and dosfsck)
 #

-CC = gcc
+CC := $(shell portageq envvar CHOST)-gcc
 CPP = $(CC) -E
 OPTFLAGS = -O2 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
 WARNFLAGS = -Wall


Reproducible: Always

Steps to Reproduce:
Use the "Gentoo Cross Development Guide"
(http://www.gentoo.org/proj/en/base/embedded/cross-development.xml)
When the cross-compile host is ready, do a:
xmerge dosfstools

During the compilation, you will see the host compiler used instead of the
cross-compiler.
Actual Results:  
The dosfstools execs do not work on the target host.

Expected Results:  
The cross compiler should be used instead of the native gcc

------- Comment #1 From Jakub Moc (RETIRED) 2007-07-09 18:26:16 0000 -------

*** This bug has been marked as a duplicate of bug 157785 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug