summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-04 00:53:16 +0000
committerSam James <sam@gentoo.org>2021-12-04 00:54:18 +0000
commit8c4513365769fad2735d1b8403352506fe4a12b2 (patch)
treed549ff8638c598c732db27b74b9eb70b8f737512 /media-gfx/blender
parentmedia-gfx/blender: add test tarball for 3.0.0 (diff)
downloadgentoo-8c4513365769fad2735d1b8403352506fe4a12b2.tar.gz
gentoo-8c4513365769fad2735d1b8403352506fe4a12b2.tar.bz2
gentoo-8c4513365769fad2735d1b8403352506fe4a12b2.zip
media-gfx/blender: don't force gold linker if GCC is detected
We prefer to let the user choose their linker. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/blender')
-rw-r--r--media-gfx/blender/blender-3.0.0.ebuild10
-rw-r--r--media-gfx/blender/blender-9999.ebuild10
2 files changed, 20 insertions, 0 deletions
diff --git a/media-gfx/blender/blender-3.0.0.ebuild b/media-gfx/blender/blender-3.0.0.ebuild
index 24ae03343e86..ad4ed0c1d319 100644
--- a/media-gfx/blender/blender-3.0.0.ebuild
+++ b/media-gfx/blender/blender-3.0.0.ebuild
@@ -263,8 +263,18 @@ src_configure() {
-DWITH_USD=OFF
-DWITH_XR_OPENXR=OFF
)
+
append-flags $(usex debug '-DDEBUG' '-DNDEBUG')
+ if tc-is-gcc ; then
+ # These options only exist when GCC is detected.
+ # We disable these to respect the user's choice of linker.
+ mycmakeargs+=(
+ -DWITH_LINKER_GOLD=OFF
+ -DWITH_LINKER_LLD=OFF
+ )
+ fi
+
cmake_src_configure
}
diff --git a/media-gfx/blender/blender-9999.ebuild b/media-gfx/blender/blender-9999.ebuild
index 48b72fc65808..1ee78855efed 100644
--- a/media-gfx/blender/blender-9999.ebuild
+++ b/media-gfx/blender/blender-9999.ebuild
@@ -263,8 +263,18 @@ src_configure() {
-DWITH_USD=OFF
-DWITH_XR_OPENXR=OFF
)
+
append-flags $(usex debug '-DDEBUG' '-DNDEBUG')
+ if tc-is-gcc ; then
+ # These options only exist when GCC is detected.
+ # We disable these to respect the user's choice of linker.
+ mycmakeargs+=(
+ -DWITH_LINKER_GOLD=OFF
+ -DWITH_LINKER_LLD=OFF
+ )
+ fi
+
cmake_src_configure
}