summaryrefslogtreecommitdiff
path: root/devel/libfaketime/files/patch-test_Makefile
blob: c1fdae76f0ea567b173eab2b291da3c09ea4620b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- test/Makefile.orig	2025-06-09 12:31:15 UTC
+++ test/Makefile
@@ -1,7 +1,7 @@
-CC = gcc
+CC ?= gcc
 
-CFLAGS += -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra $(FAKETIME_COMPILE_CFLAGS) -U_FILE_OFFSET_BITS -U_TIME_BITS
-LDFLAGS += -lrt -lpthread
+CFLAGS ?= -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra $(FAKETIME_COMPILE_CFLAGS) -U_FILE_OFFSET_BITS -U_TIME_BITS
+LDFLAGS += -lcompat -lrt -lpthread
 
 SRC = timetest.c
 OBJ = ${SRC:.c=.o}