void-packages/srcpkgs/libbaseencode/patches/fix-cflags.patch

14 lines
483 B
Diff

Index: libbaseencode-1.0.9/CMakeLists.txt
===================================================================
--- libbaseencode-1.0.9.orig/CMakeLists.txt
+++ libbaseencode-1.0.9/CMakeLists.txt
@@ -15,7 +15,7 @@ set(CMAKE_C_STANDARD 11)
set(BASEENCODE_HEADERS src/baseencode.h)
set(SOURCE_FILES src/base32.c src/base64.c)
-set(CMAKE_C_FLAGS "-Wall -Werror -fPIC")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -fPIC")
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})