You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
blackteahamburger
changed the title
*FLAGS-=-flto* causes emerge --info not to output LDFLAGS
*FLAGS-=-flto* in /etc/portage/package.cflags causes emerge --info not to output LDFLAGS
Jan 20, 2024
If LDFLAGS is not output it means that it is empty.
However, IIUC it should contain -fuse-ld=mold, and when I retry your above setting this is the case (and LDFLAGS is output). So I cannot reproduce the problem: I guess you must have some setting which remove the -fuse-ld=mold from LDFLAGS.
Note that without flto related flags, the C{,XX}FLAGS are by default not copied to LDFLAGS so that it is not surprising that LDFLAGS contains much more data without *FLAGS-=-flto*. But what is surprising is that the -fuse-ld=mold vanishes from LDFLAGS when you have explicitly set it and do not filter it anywhere.
However, IIUC it should contain -fuse-ld=mold, and when I retry your above setting this is the case (and LDFLAGS is output). So I cannot reproduce the problem: I guess you must have some setting which remove the -fuse-ld=mold from LDFLAGS.
I'm sure I don't have any settings to remove -fuse-ld=mold.
Since I cannot reproduce it, I can only give some hints which might help to debug it:
You can try to add some debugging code to the code where the setting is removed, e.g. by putting
BashrcdEcho "some identifier $LDFLAGS"
in various places in the file 10-flag.sh. For instance at the beginning of FlagSetFlags - at this place the variable should have been taken unchanged - and at the beginning and end of FlagParseLine to understand which command perhaps removes it.
/etc/portage/make.conf
:/etc/portage/make.conf.lto.defines
:/etc/portage/package.cflags/plasma-systemmonitor.conf
:After emerging kde-plasma/plasma-systemmonitor with above:
emerge --info kde-plasma/plasma-systemmonitor
:LDFLAGS
is not output. However, without/etc/portage/package.cflags/plasma-systemmonitor.conf
,emerge --info kde-plasma/plasma-systemmonitor
:Is this irrelevant or a bug?
The text was updated successfully, but these errors were encountered: