libcotp: fix build flags
This commit is contained in:
parent
c59ddcce6a
commit
41cf2abbc6
|
@ -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})
|
||||
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue