Changeset 1644

Show
Ignore:
Timestamp:
06/13/06 18:51:07 (3 years ago)
Author:
proski
Message:

Fix compilation for xscale-be-elf

Option -mshort-load-bytes is obsolete, so filter it out from COPTS after
the TARGET specific .inc file is included.

Machine specific compiler options should be generally left to the kernel
build system. The options that come from HAL are currently preserved
just for one reason. If they conflict with the options from the kernel,
it's a sign that incorrect TARGET may have been set and that the calling
conventions used in HAL may be incompatible with the kernel.

However, -mshort-load-bytes doesn't specify target architecture and
doesn't affect calling conventions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile.inc

    r1608 r1644  
    208208include ${obj}/${DEPTH}/BuildCaps.inc 
    209209 
     210# Filter out compiler options that are not supported by all compilers 
     211# and that are not needed to ensure compatible architecture and calling 
     212# conventions. 
     213COPTS := $(filter-out -mshort-load-bytes,$(COPTS)) 
     214 
    210215 
    211216# The following variables will affect developers only, and are used in the