]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl: add explicit configs for Time-HiRes
authorJackie Huang <jackie.huang@windriver.com>
Mon, 1 Sep 2014 07:04:44 +0000 (03:04 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Sep 2014 16:15:30 +0000 (17:15 +0100)
The compilation of Time-HiRes tries to compile and run the testing
program but definitely fails since we are cross compiling:
Looking for clock_gettime()... ./tmp26733: ./tmp26733: cannot execute binary file
Looking for clock_getres()... ./tmp26733: ./tmp26733: cannot execute binary file

so add explicit configs to avoid the auto detecting.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/perl-5.20.0/config.sh

index 2532c8d4134096cb425241f3d06b2e430bf5ec0d..1ac1355829fca1279e19bfb3b27b49c1de854cc2 100644 (file)
@@ -1104,3 +1104,10 @@ usekernprocpathname='undef'
 usensgetexecutablepath='undef'
 st_ino_sign='1'
 st_ino_size='4'
+
+# for Time-HiRes
+d_clock_nanosleep='define'
+d_clock_gettime='define'
+d_clock_getres='define'
+d_clock='define'
+d_nanosleep='define'