summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/nspr/nspr_4.16.bb18
1 files changed, 12 insertions, 6 deletions
diff --git a/meta/recipes-support/nspr/nspr_4.16.bb b/meta/recipes-support/nspr/nspr_4.16.bb
index a634afbf75..e79d9046c3 100644
--- a/meta/recipes-support/nspr/nspr_4.16.bb
+++ b/meta/recipes-support/nspr/nspr_4.16.bb
@@ -153,12 +153,18 @@ inherit autotools
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
-do_compile_prepend() {
- oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
-}
-
-do_compile_append() {
- oe_runmake -C pr/tests
+do_compile(){
+ oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
+
+ if [ ! -z "${SOURCE_DATE_EPOCH}" ]; then
+ BUILD_DATE=`date -u -d "@${SOURCE_DATE_EPOCH}" +'%Y-%m-%d %T'`
+ BUILD_TIME="${SOURCE_DATE_EPOCH}000000"
+ oe_runmake "SH_NOW=${BUILD_TIME}" "SH_DATE=${BUILD_DATE}"
+ else
+ oe_runmake
+ fi
+
+ oe_runmake -C pr/tests
}
do_install_append() {