[buildroot 0000598]: [patch] Host CPP used rather than toolchain CPP

bugs at busybox.net bugs at busybox.net
Sat Dec 17 01:34:46 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=598 
====================================================================== 
Reported By:                crafterm
Assigned To:                uClibc
====================================================================== 
Project:                    buildroot
Issue ID:                   598
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             12-12-2005 03:02 PST
Last Modified:              12-16-2005 17:34 PST
====================================================================== 
Summary:                    [patch] Host CPP used rather than toolchain CPP
Description: 
Hi All,

Hope all is going well.

buildroot/packages/Makefile.in defines $(TARGET_CONFIGURE_OPTS) to be:

TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
                AR=$(TARGET_CROSS)ar \
                AS=$(TARGET_CROSS)as \
                LD=$(TARGET_CROSS)ld \
                NM=$(TARGET_CROSS)nm \
                CC=$(TARGET_CROSS)gcc \
                GCC=$(TARGET_CROSS)gcc \
                CXX=$(TARGET_CROSS)g++ \
                RANLIB=$(TARGET_CROSS)ranlib \
                OBJCOPY=$(TARGET_CROSS)objcopy

but doesn't set CPP. This results in the host CPP be used rather than the
toolchain version and various configure scripts break when this happens,
thinking that a certain header exists in the staging filesystem when they
don't (eg. strace, coreutils, and others).

The attached patch fixes this.

Cheers,

Marcus
====================================================================== 

---------------------------------------------------------------------- 
 vapier - 12-16-05 17:34  
---------------------------------------------------------------------- 
that doesnt really make much sense ... configure scripts default CPP to
doing `$(CC) -E` which we override

fixed in svn anyways as it shouldnt break anything 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-12-05 03:02  crafterm       New Issue                                    
12-12-05 03:02  crafterm       Status                   new => assigned     
12-12-05 03:02  crafterm       Assigned To               => uClibc          
12-12-05 03:02  crafterm       File Added: cpp.diff                         
12-16-05 17:34  vapier         Note Added: 0000792                          
12-16-05 17:34  vapier         Status                   assigned => closed  
12-16-05 17:34  vapier         Resolution               open => fixed       
======================================================================




More information about the uClibc-cvs mailing list