From: Pavel Roskin <svn-commits@ma...> - 2006-06-13 16:51:16
Project : madwifi
Revision : 1644
Author : proski (Pavel Roskin)
Date : 2006-06-13 18:51:07 +0200 (Tue, 13 Jun 2006)
Log 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.
* trunk/Makefile.inc updated
--- trunk/Makefile.inc 2006-06-13 14:09:51 UTC (rev 1643)
+++ trunk/Makefile.inc 2006-06-13 16:51:07 UTC (rev 1644)
@@ -207,7 +207,12 @@
+# Filter out compiler options that are not supported by all compilers
+# and that are not needed to ensure compatible architecture and calling
+COPTS := $(filter-out -mshort-load-bytes,$(COPTS))
# The following variables will affect developers only, and are used in the
# make-release.bash script.