[commit] r775 - in trunk/fcode-utils-devel: detok romheaders toke

Author: stepan Date: Mon May 24 15:31:15 2010 New Revision: 775 URL: http://tracker.coreboot.org/trac/openbios/changeset/775 Log: drop -ansi because opensolaris has some odd implications like breaking getopt if it's there. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Modified: trunk/fcode-utils-devel/detok/Makefile trunk/fcode-utils-devel/romheaders/Makefile trunk/fcode-utils-devel/toke/Makefile Modified: trunk/fcode-utils-devel/detok/Makefile ============================================================================== --- trunk/fcode-utils-devel/detok/Makefile Sat May 22 15:34:10 2010 (r774) +++ trunk/fcode-utils-devel/detok/Makefile Mon May 24 15:31:15 2010 (r775) @@ -29,7 +29,7 @@ INCLUDES = -I../shared # Normal Flags: -CFLAGS = -O2 -Wall -ansi #-Wextra +CFLAGS = -O2 -Wall #-Wextra LDFLAGS = # Coverage: Modified: trunk/fcode-utils-devel/romheaders/Makefile ============================================================================== --- trunk/fcode-utils-devel/romheaders/Makefile Sat May 22 15:34:10 2010 (r774) +++ trunk/fcode-utils-devel/romheaders/Makefile Mon May 24 15:31:15 2010 (r775) @@ -24,7 +24,7 @@ CC ?= gcc STRIP = strip -CFLAGS = -O2 -Wall -Wextra -ansi +CFLAGS = -O2 -Wall -Wextra INCLUDES = -I../shared SOURCES = romheaders.c ../shared/classcodes.c Modified: trunk/fcode-utils-devel/toke/Makefile ============================================================================== --- trunk/fcode-utils-devel/toke/Makefile Sat May 22 15:34:10 2010 (r774) +++ trunk/fcode-utils-devel/toke/Makefile Mon May 24 15:31:15 2010 (r775) @@ -29,7 +29,7 @@ INCLUDES = -I../shared # Normal flags -CFLAGS = -O2 -Wall -ansi -Wno-pointer-sign #-Wextra +CFLAGS = -O2 -Wall #-Wextra LDFLAGS = # Coverage: @@ -39,6 +39,12 @@ # Debugging: # CFLAGS := $(CFLAGS) -g +# for gcc 4. remove if you fixed the code. +_GCC4_CFLAGS=$(shell echo 'main(int argc, char **argv){return 0;}' > .test.c; \ + $(CC) -Wno-pointer-sign -c .test.c -o .test.o > /dev/null 2>&1 \ + && echo -Wno-pointer-sign; rm .test.c .test.o ) +CFLAGS := $(CFLAGS) $(_GCC4_CFLAGS) + OBJS = clflags.o conditl.o devnode.o dictionary.o emit.o errhandler.o \ flowcontrol.o macros.o nextfcode.o parselocals.o scanner.o stack.o \ stream.o strsubvocab.o ticvocab.o toke.o tokzesc.o tracesyms.o \
participants (1)
-
repository service