X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Makefile;h=32c3b016d742e9c1acdcef0648a436367db9d3fe;hb=7e98aaf5fc21d623d1ca9b51717b18e9fd9f3ef2;hp=0f9fdc8d5ec495516dbb3a74bcf32024825ba9d3;hpb=4c7cd7cd7a2f13fbcd8ce5ff900af029bd7172a2;p=linux-kernel-docs%2Flinux-2.4.36.git diff --git a/Makefile b/Makefile index 0f9fdc8d..32c3b016 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 4 -SUBLEVEL = 33 -EXTRAVERSION = -rc3 +SUBLEVEL = 36 +EXTRAVERSION = .3 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) @@ -93,11 +93,18 @@ CPPFLAGS := -D__KERNEL__ -I$(HPATH) CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \ -fno-strict-aliasing -fno-common +CFLAGS += -fno-builtin-strpbrk -fno-builtin-sprintf ifndef CONFIG_FRAME_POINTER CFLAGS += -fomit-frame-pointer endif AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS) +check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) +if_gcc4 = $(shell if echo __GNUC__ | $(CC) -E -xc - | grep -q '^4$$' > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) + +# disable pointer signedness warnings in gcc 4.0 +CFLAGS += $(call check_gcc,-Wno-pointer-sign,) + # # ROOT_DEV specifies the default root-device when making the image. # This can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case