From 92b7a1403e0f88d05f9d9051092bd5cc1395f698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 27 Mar 2021 14:25:12 +0700 Subject: [PATCH] opensonic: don't overwrite CMAKE_BUILD_TYPE --- srcpkgs/opensonic/patches/fix-cflags.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/opensonic/patches/fix-cflags.patch diff --git a/srcpkgs/opensonic/patches/fix-cflags.patch b/srcpkgs/opensonic/patches/fix-cflags.patch new file mode 100644 index 00000000000..10d2c7c80e6 --- /dev/null +++ b/srcpkgs/opensonic/patches/fix-cflags.patch @@ -0,0 +1,17 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -25,12 +25,10 @@ SET(GAME_NAME "Open Sonic") + SET(GAME_VERSION "0.1.4") + SET(RTFM "Please read the user manual (readme.html) to get help.") + SET(ALLEGRO_RECOMMENDED_VERSION "4.4.1") +-SET(CMAKE_BUILD_TYPE Release) + MESSAGE("${GAME_NAME} version ${GAME_VERSION}") + + # configuring... + SET(DEFS "") +-SET(CFLAGS_EXTRA "-g") + SET(CFLAGS "${CFLAGS} ${CMAKE_C_FLAGS}") + MESSAGE("Using CFLAGS='${CFLAGS}'") +