--- Makefile.old 2025-01-02 22:35:12.864396401 +0800 +++ Makefile 2025-01-02 22:40:06.648396226 +0800 @@ -1,6 +1,6 @@ -CC=gcc -CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -LDFLAGS= +CC=clang +CFLAGS=-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -flto=full -fno-exceptions -Os -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual +LDFLAGS=-fuse-ld=lld -L/usr/local/lib -Wl,-O1 -Wl,-rpath=/usr/local/lib # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=thread # LDFLAGS=-g -fsanitize=thread # CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -g -fsanitize=address @@ -105,7 +105,7 @@ pigz.pdf: pigz.1 groff -mandoc -f H -T ps pigz.1 | ps2pdf - pigz.pdf -all: pigz pigzj pigzt pigzn docs +all: pigz pigzj pigzt pigzn clean: @rm -f *.o pigz unpigz pigzj pigzn pigzt pigz.c.gz pigz.c.zz pigz.c.zip