GNUmakefile: fix build for false(1)

This commit is contained in:
dtb 2023-12-25 17:11:34 -07:00
parent 324328d2cc
commit 8a8558442e
Signed by: trinity
GPG Key ID: 31FF85CCB6DC7641

View File

@ -17,6 +17,7 @@
PREFIX=/usr/local
CC=cc
CFLAGS=-O3 -Lbuild/lib
RUSTC=rustc
ifeq ($(CC), gcc)
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto \
@ -51,8 +52,8 @@ test: build
tests/cc-compat.sh
tests/posix-compat.sh
false: src/false.c build_dir
$(CC) $(CFLAGS) -o build/bin/false src/false.c
false: src/false.rs build_dir
$(RUSTC) -o build/bin/false src/false.rs
intcmp: src/intcmp.c build_dir
$(CC) $(CFLAGS) -o build/bin/intcmp src/intcmp.c