libcap/Makefile contains this which builds a build tool: _makenames: _makenames.c cap_names.list.h $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@ This fails when BUILD_CFLAGS is not defined. In that case, something makes BUILD_CFLAGS default to CFLAGS, and the native compiler is called with invalid options. Reproducible: Always
Created attachment 324452 [details] build output
Working fix: src_configure() { tc-export BUILD_CC CC AR RANLIB + export BUILD_CFLAGS="${BUILD_CFLAGS}" } Note that just "export BUILD_CFLAGS" does not work.
should be all set now in the tree; thanks for the report! Commit message: Export BUILD_CFLAGS and friends http://sources.gentoo.org/sys-libs/libcap/libcap-2.22.ebuild?r1=1.11&r2=1.12