OSDN Git Service

[PATCH] do not use gcc's builtin strpbrk
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Aug 2007 18:29:52 +0000 (20:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Aug 2007 19:51:45 +0000 (21:51 +0200)
Some drivers rely on strpbrk and complain about a lack of strchr().
This is caused by gcc's builtin strpbrk which must be disabled.

Makefile

index e44ff6b..6f23ba2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,7 @@ CPPFLAGS := -D__KERNEL__ -I$(HPATH)
 
 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
          -fno-strict-aliasing -fno-common
-CFLAGS += -fno-builtin-sprintf
+CFLAGS += -fno-builtin-sprintf -fno-builtin-strpbrk
 ifndef CONFIG_FRAME_POINTER
 CFLAGS += -fomit-frame-pointer
 endif