From 13a02baea72a8d21a2e4ef655d5657a81516b391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Mar 2021 09:01:12 +0700 Subject: [PATCH] cglm: fix build flags --- srcpkgs/cglm/patches/fix-cflags.patch | 13 +++++++++++++ srcpkgs/cglm/template | 1 + 2 files changed, 14 insertions(+) create mode 100644 srcpkgs/cglm/patches/fix-cflags.patch 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