Working on libretro ppsspp.
This commit is contained in:
parent
f866537c2c
commit
8b895522bd
4 changed files with 28 additions and 2 deletions
|
@ -25,6 +25,5 @@
|
|||
TARGET_CFLAGS="-march=${TARGET_VARIANT}${TARGET_CPU_FLAGS} -mabi=lp64 -Wno-psabi -mtune=$TARGET_CPU"
|
||||
# Disable runtime checking support of ARMv8.0's optional LSE feature. Breaks gdb and mesa compile.
|
||||
TARGET_CFLAGS="${TARGET_CFLAGS} -mno-outline-atomics"
|
||||
TARGET_CPPFLAGS="${TARGET_CPPFLAGS} -mno-outline-atomics"
|
||||
TARGET_LDFLAGS="-march=${TARGET_VARIANT}${TARGET_CPU_FLAGS} -mtune=$TARGET_CPU"
|
||||
GCC_OPTS="--with-abi=lp64 --with-arch=$TARGET_VARIANT"
|
||||
|
|
|
@ -66,6 +66,15 @@ else
|
|||
PKG_CMAKE_OPTS_TARGET+=" -DUSE_WAYLAND_WSI=OFF"
|
||||
fi
|
||||
|
||||
case ${TARGET_ARCH} in
|
||||
arm)
|
||||
PKG_CMAKE_OPTS_TARGET+=" -DARMV7=ON"
|
||||
;;
|
||||
aarch64)
|
||||
PKG_CMAKE_OPTS_TARGET+=" -DARM64=ON"
|
||||
;;
|
||||
esac
|
||||
|
||||
PKG_CMAKE_OPTS_TARGET+="${PKG_CMAKE_OPTS_TARGET} \
|
||||
-DUSE_SYSTEM_FFMPEG=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
|
|
18
packages/games/libretro/ppsspp/patches/004-build-flags.patch
Normal file
18
packages/games/libretro/ppsspp/patches/004-build-flags.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d43497e2c..11ac4fce8 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -302,11 +302,11 @@ if(NOT MSVC)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -D_DEBUG")
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
|
||||
- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -D_NDEBUG")
|
||||
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -fno-tree-slp-vectorize -D_NDEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -D_DEBUG")
|
||||
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
|
||||
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -D_NDEBUG")
|
||||
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast -fno-tree-slp-vectorize -D_NDEBUG")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
|
||||
|
||||
# Disable some warnings
|
|
@ -19,7 +19,7 @@ if [ "${MOLD_SUPPORT}" = "yes" ]; then
|
|||
fi
|
||||
|
||||
case ${TARGET_ARCH} in
|
||||
arm|riscv64)
|
||||
arm|aarch64|riscv64)
|
||||
OPTS_LIBATOMIC="--enable-libatomic"
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue