修复Centos 7编译找不到round()定义

This commit is contained in:
2024-09-30 12:02:51 +08:00
parent 8abf0ce512
commit 82b400b45c
2 changed files with 9 additions and 1 deletions

8
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"C_Cpp.errorSquiggles": "disabled",
"files.associations": {
"string.h": "c",
"stdlib.h": "c",
"ip2region.h": "c"
}
}

View File

@@ -2,7 +2,7 @@ CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -Os -Wall
LIBS = -static
LIBS = -lm -static
OBJ := denyip
all: main.o ip2region.o xdb_searcher.o qqwry.o