When building the following output occurs: WARNING: perl: The compile log indicates that host include and/or library paths were used. Please check the log '/home/mhatle/git/poky/build/tmp/work/i586-poky-linux/perl-5.8.8-r20/temp/log.do_compile' for more information. In the referenced log file: i586-poky-linux-gcc -o libperl.so -shared -L/usr/local/lib perl.o gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o s v.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp _sort.o -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -Wl,-soname,libperl.so.5 /home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.0/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation and other similar items...
I can reproduce this on the latest master branch. Will look into it.
I have a fix for this for the perl 5.12.2 recipe.
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=f57e9daf74d5fbab6c9a3f5e60e1320a0bf0642d