You receive this bug because this package does not respect my system's CC ( x86_64-pc-linux-gnu-gcc - /usr/bin/x86_64-pc-linux-gnu-gcc ) and calls directly gcc -/usr/bin/gcc The possible solutions to fix this issue are: 1)Fix the buildsystem, if you can 2)inherit toolchain-funcs and use tc-export CC 3)inherit toolchain-funcs and use emake CC="$(tc-getCC)" Pay attention: CC is respected in the compile phase, but in the configure phase it does half tests with $CC and half test directly with gcc; from the log: checking whether gcc accepts -Wcomment... yes checking whether gcc accepts -Wdeclaration-after-statement... yes checking whether gcc accepts -Wfloat-equal... yes checking whether gcc accepts -Wformat... yes checking whether gcc accepts -Wformat-security... yes checking whether gcc accepts -Wimplicit... yes checking whether gcc accepts -Wignored-qualifiers... yes checking whether gcc accepts -Wmissing-braces... yes checking whether gcc accepts -Wmissing-declarations... yes checking whether gcc accepts -Wmissing-parameter-type... yes checking whether gcc accepts -Wmissing-prototypes... yes checking whether gcc accepts -Wnested-externs... yes checking whether gcc accepts -Wno-long-long... yes checking whether gcc accepts -Wno-unreachable-code... yes checking whether gcc accepts -Wparentheses... yes checking whether gcc accepts -Wpointer-sign... yes checking whether gcc accepts -Wreturn-type... yes checking whether gcc accepts -Wsequence-point... yes checking whether gcc accepts -Wshadow... yes checking whether gcc accepts -Wsign-compare... yes checking whether gcc accepts -Wswitch... yes checking whether gcc accepts -Wtype-limits... yes checking whether gcc accepts -Wuninitialized... yes checking whether gcc accepts -Wunused-function... yes checking whether gcc accepts -Wunused-label... yes checking whether gcc accepts -Wunused-parameter... yes checking whether gcc accepts -Wunused-result... yes checking whether gcc accepts -Wunused-value... yes checking whether gcc accepts -Wunused-variable... yes checking whether gcc accepts -Wwrite-strings... yes
Did you eyeball it or you have some sort of automated check for it? I want it too :]
I've pushed that cosmetic fix upstream: https://github.com/MidnightCommander/mc/commit/4b3d88f07c8d68a245f86b72024cca28d9a3b340 As mc-4.8.7 is being stabilized I'll wait a bit.
Should be fixed in app-misc/mc-4.8.8 and upper in tree.