mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
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:
@@ -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")
|
||||
@@ -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"
|
||||
)
|
||||
Reference in New Issue
Block a user