From 1465d31dd060fd29bccf75f73ce00faf43bfc850 Mon Sep 17 00:00:00 2001 From: mccarverone <64681788+mccarverone@users.noreply.github.com> Date: Sun, 11 Sep 2022 22:35:09 +0200 Subject: [PATCH] dev-util/dub::dlang: requires NOCADD=1 dev-util/dub is from dlang overlay. It takes NOCADD=1 otherwise portage-bashrc-mv fills up LDFLAGS with CFLAGS that spill over to D compiler and break the build. From portage-bashrc-mv docs: NOCADD If this variable is false and some of CFLAGS, CXXFLAGS, or LDFLAGS contains -flto* then the CFLAGS and CXXFLAGS variables finally calculated will be added to the LDFLAGS. --- sys-config/ltoize/files/package.cflags/portage-bashrc-mv.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-config/ltoize/files/package.cflags/portage-bashrc-mv.conf b/sys-config/ltoize/files/package.cflags/portage-bashrc-mv.conf index 2f65ea9e..7b4ae36b 100644 --- a/sys-config/ltoize/files/package.cflags/portage-bashrc-mv.conf +++ b/sys-config/ltoize/files/package.cflags/portage-bashrc-mv.conf @@ -1,3 +1,4 @@ # BEGIN: portage-bashrc-mv remove-la workarounds dev-util/colm NOLAFILEREMOVE=true # See issue 690 and https://bugs.gentoo.org/766210 +dev-util/dub::dlang NOCADD=1 # Required to avoid tainting LDFLAGS and breaking D compiler. See portage-bashrc-mv docs. # END: portage-bashrc-mv remove-la workarounds