void-packages/srcpkgs/libcotp/patches/fix-cflags.patch
Đoàn Trần Công Danh 41cf2abbc6 libcotp: fix build flags
2021-04-03 10:13:06 +07:00

14 lines
603 B
Diff

Index: libcotp-1.2.2/CMakeLists.txt
===================================================================
--- libcotp-1.2.2.orig/CMakeLists.txt
+++ libcotp-1.2.2/CMakeLists.txt
@@ -25,8 +25,7 @@ set(CMAKE_C_STANDARD 11)
set(COTP_HEADERS src/cotp.h)
set(SOURCE_FILES src/otp.c)
-set(CMAKE_C_FLAGS "-Wall -Wextra -O3 -Wno-format-truncation -fstack-protector-strong -fPIC")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-format-truncation -fstack-protector-strong -fPIC")
add_library(cotp SHARED ${SOURCE_FILES})