games-engines/fs2_open: Added patch to fix linker QA issue

Closes: https://bugs.gentoo.org/836249
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2022-03-27 18:03:39 +02:00
parent b9d8d6a25c
commit bf56c1906d
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
--- fs2_open-21.4.1/cmake/toolchain-gcc.cmake 2021-11-01 18:00:53.000000000 +0100
+++ fs2_open-21.4.1/cmake/toolchain-gcc.cmake 2022-03-27 17:52:26.738107292 +0200
@@ -27,6 +27,11 @@
set(COMPILER_FLAGS "")
set(LINKER_FLAGS "")
+# For C and C++, the values can be overwritten independently
+if(DEFINED ENV{LDFLAGS})
+ set(LINKER_FLAGS $ENV{LDFLAGS})
+endif()
+
if (GCC_USE_GOLD)
OPTION(GCC_INCREMENTAL_LINKING "Use incremental linking" OFF)
set(LINKER_FLAGS "${LINKER_FLAGS} -fuse-ld=gold")

View File

@@ -44,6 +44,7 @@ RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=(
"${FILESDIR}/${P}-dont-build-lz4.patch"
"${FILESDIR}/${P}-dont-override-ldflags.patch"
"${FILESDIR}/${P}-make-arch-independent.patch"
"${FILESDIR}/${P}-version-fix.patch"
)