diff --git a/srcpkgs/cglm/patches/fix-cflags.patch b/srcpkgs/cglm/patches/fix-cflags.patch new file mode 100644 index 00000000000..c74de6ea62d --- /dev/null +++ b/srcpkgs/cglm/patches/fix-cflags.patch @@ -0,0 +1,13 @@ +Index: cglm-0.7.6/CMakeLists.txt +=================================================================== +--- cglm-0.7.6.orig/CMakeLists.txt ++++ cglm-0.7.6/CMakeLists.txt +@@ -25,7 +25,7 @@ if(MSVC) + add_definitions(-DNDEBUG -D_WINDOWS -D_USRDLL -DCGLM_EXPORTS -DCGLM_DLL) + add_compile_options(/W3 /Ox /Gy /Oi /TC) + else() +- add_compile_options(-Wall -Werror -O3) ++ add_compile_options(-Wall) + endif() + + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) diff --git a/srcpkgs/cglm/template b/srcpkgs/cglm/template index f00a093edab..311b4c79a7d 100644 --- a/srcpkgs/cglm/template +++ b/srcpkgs/cglm/template @@ -9,6 +9,7 @@ license="MIT" homepage="https://github.com/recp/cglm" distfiles="https://github.com/recp/cglm/archive/v${version}.tar.gz" checksum=29ff8af4edc03697e36d3e6f99a80b884a80ee09d46055ce45765e5d6b2456d9 +patch_args=-Np1 post_install() { vlicense LICENSE