Commit b170cf7dbd4cb0a1780abddf02f07dd09c41a484

Thomas de Grivel 2024-07-27T19:05:53

bsd make

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/toke/Makefile b/toke/Makefile
index 9d3c966..70fd1f9 100644
--- a/toke/Makefile
+++ b/toke/Makefile
@@ -40,11 +40,7 @@ LDFLAGS =
 # Debugging:
 # CFLAGS  := $(CFLAGS) -g
 
-# for gcc 4. remove if you fixed the code.
-_GCC4_CFLAGS=$(shell echo 'int 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)
+CFLAGS += -Wno-pointer-sign
 
 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 \