SOURCES (LINUX_2_6): kernel-gcc4.patch - avoid lot's of useless wa...
pluto
pluto at pld-linux.org
Mon Aug 1 12:31:58 CEST 2005
Author: pluto Date: Mon Aug 1 10:31:58 2005 GMT
Module: SOURCES Tag: LINUX_2_6
---- Log message:
- avoid lot's of useless warning when building host utilities.
# From: Pawel Sikora <pluto at pld-linux.org>
# Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
#
# Makefile
# 2005/04/03 22:26:24+02:00 sam at mars.ravnborg.org +12 -4
# -Wno-pointer-sign for gcc 4.xx when compiling host programs
---- Files affected:
SOURCES:
kernel-gcc4.patch (1.1.2.24 -> 1.1.2.25)
---- Diffs:
================================================================
Index: SOURCES/kernel-gcc4.patch
diff -u SOURCES/kernel-gcc4.patch:1.1.2.24 SOURCES/kernel-gcc4.patch:1.1.2.25
--- SOURCES/kernel-gcc4.patch:1.1.2.24 Wed Jun 22 22:09:19 2005
+++ SOURCES/kernel-gcc4.patch Mon Aug 1 12:31:53 2005
@@ -1,14 +1,35 @@
--- a/Makefile 2005-03-30 13:10:50.000000000 +0200
+++ b/Makefile 2005-03-30 13:11:15.000000000 +0200
-@@ -202,7 +202,7 @@
+@@ -200,10 +200,10 @@
+ else if [ -x /bin/bash ]; then echo /bin/bash; \
+ else echo sh; fi ; fi)
- HOSTCC = gcc
- HOSTCXX = g++
+-HOSTCC = gcc
+-HOSTCXX = g++
-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-+HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer $(call cc-option,-Wno-pointer-sign,)
- HOSTCXXFLAGS = -O2
+-HOSTCXXFLAGS = -O2
++HOSTCC := gcc
++HOSTCXX := g++
++HOSTCFLAGS := -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
++HOSTCXXFLAGS := -O2
# Decide whether to build built-in, modular, or both.
+ # Normally, just do built-in.
+@@ -545,6 +545,14 @@
+ # disable pointer signedness warnings in gcc 4.0
+ CFLAGS += $(call cc-option,-Wno-pointer-sign,)
+
++HOSTCFLAGS += $(shell if $(HOSTCC) $(HOSTCFLAGS) -Wno-pointer-sign -S \
++ -o /dev/null -xc /dev/null > /dev/null 2>&1; then \
++ echo "-Wno-pointer-sign"; fi ;)
++
++HOSTCXXFLAGS += $(shell if $(HOSTCXX) $(HOSTCXXFLAGS) -Wno-pointer-sign -S \
++ -o /dev/null -xc /dev/null > /dev/null 2>&1; then \
++ echo "-Wno-pointer-sign"; fi ;)
++
+ # Default kernel image to build when no specific target is given.
+ # KBUILD_IMAGE may be overruled on the commandline or
+ # set in the environment
--- a/arch/sparc64/kernel/smp.c 2005-05-12 00:41:08.000000000 +0200
+++ b/arch/sparc64/kernel/smp.c 2005-05-16 01:52:11.000000000 +0200
@@ -41,7 +41,7 @@
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/kernel-gcc4.patch?r1=1.1.2.24&r2=1.1.2.25&f=u
More information about the pld-cvs-commit
mailing list