void-packages/srcpkgs/Cataclysm-DDA/patches/fsigned-char.patch

27 lines
973 B
Diff
Raw Normal View History

2020-04-12 16:33:52 +00:00
From 4d6820b2159e3d2ed0cf365e07b093fa79932f1e Mon Sep 17 00:00:00 2001
From: Jookia <166291@gmail.com>
Date: Thu, 9 Apr 2020 16:08:07 +1000
Subject: [PATCH] CMakeLists: Add -fsigned-char to mimic Makefile
This fixes the build on ARM.
---
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git CMakeLists.txt CMakeLists.txt
index 095d6e23b20..d0f5e0cc7f3 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -240,9 +240,10 @@ ELSE()
IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
SET(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
ENDIF()
+ SET(CATA_OTHER_FLAGS "${CATA_OTHER_FLAGS} -fsigned-char")
# Compact the whitespace in the warning string
string(REGEX REPLACE "[\t ]+" " " CATA_WARNINGS "${CATA_WARNINGS}")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS}")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS} ${CATA_OTHER_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
ENDIF()