Skip to content

Commit a63bd54

Browse files
Stefan ReinauerStefan Reinauer
authored andcommitted
drop -ansi because opensolaris has some odd implications like breaking getopt
if it's there. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/openbios/trunk/fcode-utils-devel@775 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent e6563bd commit a63bd54

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

detok/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ STRIP = strip
2929
INCLUDES = -I../shared
3030

3131
# Normal Flags:
32-
CFLAGS = -O2 -Wall -ansi #-Wextra
32+
CFLAGS = -O2 -Wall #-Wextra
3333
LDFLAGS =
3434

3535
# Coverage:

romheaders/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
CC ?= gcc
2626
STRIP = strip
27-
CFLAGS = -O2 -Wall -Wextra -ansi
27+
CFLAGS = -O2 -Wall -Wextra
2828
INCLUDES = -I../shared
2929

3030
SOURCES = romheaders.c ../shared/classcodes.c

toke/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ STRIP = strip
2929
INCLUDES = -I../shared
3030

3131
# Normal flags
32-
CFLAGS = -O2 -Wall -ansi -Wno-pointer-sign #-Wextra
32+
CFLAGS = -O2 -Wall #-Wextra
3333
LDFLAGS =
3434

3535
# Coverage:
@@ -39,6 +39,12 @@ LDFLAGS =
3939
# Debugging:
4040
# CFLAGS := $(CFLAGS) -g
4141

42+
# for gcc 4. remove if you fixed the code.
43+
_GCC4_CFLAGS=$(shell echo 'main(int argc, char **argv){return 0;}' > .test.c; \
44+
$(CC) -Wno-pointer-sign -c .test.c -o .test.o > /dev/null 2>&1 \
45+
&& echo -Wno-pointer-sign; rm .test.c .test.o )
46+
CFLAGS := $(CFLAGS) $(_GCC4_CFLAGS)
47+
4248
OBJS = clflags.o conditl.o devnode.o dictionary.o emit.o errhandler.o \
4349
flowcontrol.o macros.o nextfcode.o parselocals.o scanner.o stack.o \
4450
stream.o strsubvocab.o ticvocab.o toke.o tokzesc.o tracesyms.o \

0 commit comments

Comments
 (0)