[BusyBox 0001376]: Add CFLAGS to final link stage

bugs at busybox.net bugs at busybox.net
Thu Feb 14 04:24:30 PST 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1376 
====================================================================== 
Reported By:                zdevai
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1376
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             05-31-2007 06:18 PDT
Last Modified:              02-14-2008 04:24 PST
====================================================================== 
Summary:                    Add CFLAGS to final link stage
Description: 
Currently, the final link of busybox (Makefile:568) does not pass the
CFLAGS to the compiler.
This way, the compiler just links the executable to its default target
libraries, which is not always intended.

Real example: The latest CodeSourcery ARM toolchains default to the ARMv5
arch. If you pass "-march=armv4t" with CFLAGS, the object files are
compiled for that arch, but the resulting binary will still be linked with
the ARMv5 libgcc and libc, which makes them unusable.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 02-14-08 04:24  
---------------------------------------------------------------------- 
Fixed in rev 21016. Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-31-07 06:18  zdevai         New Issue                                    
05-31-07 06:18  zdevai         Status                   new => assigned     
05-31-07 06:18  zdevai         Assigned To               => BusyBox         
02-14-08 04:24  vda            Status                   assigned => closed  
02-14-08 04:24  vda            Note Added: 0004614                          
======================================================================



More information about the busybox-cvs mailing list