diff --git a/srcpkgs/catimg/patches/fix-cflags.patch b/srcpkgs/catimg/patches/fix-cflags.patch new file mode 100644 index 00000000000..9b9f1074ef2 --- /dev/null +++ b/srcpkgs/catimg/patches/fix-cflags.patch @@ -0,0 +1,12 @@ +Index: catimg-2.7.0/CMakeLists.txt +=================================================================== +--- catimg-2.7.0.orig/CMakeLists.txt ++++ catimg-2.7.0/CMakeLists.txt +@@ -11,7 +11,6 @@ endif() + #set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra -g -std=c99 -Wno-unused-result") + #set(CMAKE_BUILD_TYPE Debug) + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -Wextra -Os -std=c99 -Wno-unused-result") +-set(CMAKE_BUILD_TYPE Release) + + set(SRC ${PROJECT_SOURCE_DIR}/src) + diff --git a/srcpkgs/catimg/template b/srcpkgs/catimg/template index 374351c4537..6fbc5f1d914 100644 --- a/srcpkgs/catimg/template +++ b/srcpkgs/catimg/template @@ -9,7 +9,7 @@ license="MIT" homepage="https://github.com/posva/catimg" distfiles="https://github.com/posva/catimg/archive/${version}.tar.gz" checksum=3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139 - +patch_args=-Np1 CFLAGS="-fcommon" post_install() {