fix: workaround gcc issue

This commit is contained in:
Zxilly 2024-12-20 02:41:34 +08:00
parent e0cbd332f7
commit 4da844acdd
No known key found for this signature in database
GPG Key ID: 47AB1DEC841BC6A2
2 changed files with 1 additions and 5 deletions

View File

@ -91,9 +91,6 @@ else ()
message(STATUS "AddressSanitizer is disabled.")
endif ()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-gc-sections")
if (UA2F_CUSTOM_USER_AGENT)
if (NOT UA2F_USER_AGENT_STRING)
message(FATAL_ERROR "UA2F_USER_AGENT_STRING is not set")
@ -112,7 +109,6 @@ add_executable(ua2f
src/util.c
src/cache.c
src/handler.c
src/cli.c
src/config.c
src/third/nfqueue-mnl.c)

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=UA2F
PKG_VERSION:=4.9.5
PKG_VERSION:=4.9.6
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0-only