Hello. I tried to cross-compile (glibc -> uclibc) dev-libs/popt-1.13 and got the following error: **************************************************************************** checking for string.h... (cached) yes checking for va_copy() function... configure: error: cannot run test program while cross compiling See config.log' for more details. **************************************************************************** Found the possible fix from (I will post the patch in next message if it works): http://www.mail-archive.com/popt-devel@rpm5.org/msg00121.html Reproducible: Always Steps to Reproduce: 1. Build the cross-compile toolchain (target uclibc, if that matters) and prepare the build environment system with the help of: http://www.gentoo.org/proj/en/base/embedded/cross-development.xml 2. Try to cross-compile with USE="-*" xmerge --root your_target_folder_here =dev-libs/popt-1.13
Created attachment 190024 [details] Updated dev-libs/popt-1.13 ebuild to allow cross-compiling
Created attachment 190026 [details, diff] dev-libs/popt-1.13 cross-compiling patch Works! (at least for dev-libs/popt-1.13)