Skip to contentSkip to conversation

perl: add explicit configs for Time-HiRes

PATCH New [email protected] 1 participant 1 message Sep 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: add explicit configs for Time-HiRes

From: Jackie Huang <[email protected]>

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.

---
 meta/recipes-devtools/perl/perl-5.20.0/config.sh | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-devtools/perl/perl-5.20.0/config.sh +7 -0
index 2532c8d..1ac1355 100644
@@ -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'
Signature · 1 line
2.0.0