Skip to content

Commit

Permalink
libcotp: fix build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
sgn committed Mar 26, 2021
1 parent 14486e1 commit a6de9ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions srcpkgs/libcotp/patches/fix-cflags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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})

1 change: 1 addition & 0 deletions srcpkgs/libcotp/template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ license="Apache-2.0"
homepage="https://github.com/paolostivanin/libcotp"
distfiles="https://github.com/paolostivanin/libcotp/archive/v${version}.tar.gz"
checksum=25b45ffa4aece5cc689503ebea7356a2f760c194f0c41805934495d2fe7165b1
patch_args=-Np1

libcotp-devel_package() {
depends="libcotp-${version}_${revision}"
Expand Down

0 comments on commit a6de9ca

Please sign in to comment.