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)" gcc -o pptpd-logwtmp.so -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -shared -march=native -O2 -g0 -pipe -fno-builtin -Wall -DSBINDIR='"/usr/sbin"' -I.. -I../../include -fPIC pptpd-logwtmp.c -lutil
+ 25 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> pptpd-1.3.4-r2.ebuild, + files/pptpd-1.3.4-gentoo.patch: + Respect compiler during plugins build, wrt bug #461722. Thanks to Agostino + Sarubbo for discovering this issue