Skip to content

Commit

Permalink
fix: workaround gcc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Dec 19, 2024
1 parent e0cbd33 commit 4da844a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion openwrt/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4da844a

Please sign in to comment.