X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2FMakefile;h=1776491e09b6c4ecf32b358a4b693efefb635e2c;hb=6b65dda096b1e7981b5c827ab4fcbec53b026664;hp=7567e7b84d920198faeb146e5dbf23697e2dfedc;hpb=38518c9efa04fe598979fcf152460255669bbea7;p=rrq%2Foverlay-boot.git diff --git a/src/Makefile b/src/Makefile index 7567e7b..1776491 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,13 +1,16 @@ all: reaper # Pick compiler by preference -CCPREFS = /usr/bin/musl-gcc /usr/bin/gcc -CC = $(word 1,$(shell ls $(CCPREFS) 2>/dev/null)) +#CC = /usr/bin/gcc +CC = /usr/bin/musl-gcc + +$(warning CC=$(CC)) CFLAGS = -Wall -static -O3 -flto reaper: reaper.c $(CC) $(CFLAGS) -o $@ $^ + strip $@ clean: rm -f reaper