From ce0c23358f6ac7fbdd06c5d6b475f935eea079e9 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Wed, 18 Dec 2024 11:48:58 +0800 Subject: [PATCH] fix src/tests/Makefile under fedora 40 --- src/tests/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/tests/Makefile b/src/tests/Makefile index 570084c..5f57bc1 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -1,6 +1,6 @@ .SUFFIXES: .c .o -COMPILE = $(CC) -g -O3 -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG +COMPILE = $(CC) -g -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -DDEBUG_FLAG INC_PATH = -I/usr/local/include LIB_PATH = -lfastcommon -lpthread @@ -15,9 +15,6 @@ ALL_PRGS = test_allocator test_skiplist test_multi_skiplist test_mblock test_blo all: $(ALL_PRGS) -test_memcpy: test_memcpy.c - $(CC) -g -Wall -o $@ $< $(LIB_PATH) $(INC_PATH) - .c: $(COMPILE) -o $@ $< $(LIB_PATH) $(INC_PATH) .c.o: