Comment on Shen Programming Language for AndroidComments−mcguire8yJust tried building shen-c[1]; it seems my gcc (5.4.0) doesn't like the code with -std=c99 and prefers the -lgc at the end of the line.[1] https://github.com/otabat/shen-c diff --git a/Makefile b/Makefile index 3ae5a55..458200d 100644 --- a/Makefile +++ b/Makefile @@ -26,5 +26,6 @@ ${TARGET}: ${SRC_OBJS} # cc -g -O3 -std=c99 -lgc -lprofiler -Wl,-no_pie -o $@ $^ - cc -O3 -std=c99 -lgc -o $@ $^ +# cc -O3 -std=c99 -lgc -o $@ $^ # gcc-6 -g -O3 -std=c99 -L /usr/local/lib -lgc -lprofiler -Wl,-no_pie -o $@ $^ # gcc-6 -O3 -std=c99 -L /usr/local/lib -lgc -o $@ $^ + gcc -O3 -o $@ $^ -lgc @@ -34,5 +35,6 @@ ${OBJ_ROOT}/%.o: $(SRC_ROOT)/%.c # cc -O2 -std=c99 -fno-optimize-sibling-calls -c -o $@ $< - cc -O3 -std=c99 -fno-optimize-sibling-calls -c -o $@ $< +# cc -O3 -std=c99 -fno-optimize-sibling-calls -c -o $@ $< # gcc-6 -g -O3 -std=c99 -fno-optimize-sibling-calls -Wall -I /usr/local/include/gc -c -o $@ $< # gcc-6 -O3 -std=c99 -fno-optimize-sibling-calls -Wall -I /usr/local/include/gc -c -o $@ $< + gcc -O3 -fno-optimize-sibling-calls -c -o $@ $<
Comments
Just tried building shen-c[1]; it seems my gcc (5.4.0) doesn't like the code with -std=c99 and prefers the -lgc at the end of the line.
[1] https://github.com/otabat/shen-c