summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaniel <daniel@openbsd.org>2016-04-25 11:11:51 +0000
committerdaniel <daniel@openbsd.org>2016-04-25 11:11:51 +0000
commit245bc9cce8780b47f3b42ad010ee4b9b2659d7c9 (patch)
treee8b80ea20a86a0648a178b50999f3df04432e430
parentprepare for possible pledging. We can't really drop privs if we're not (diff)
downloadwireguard-openbsd-245bc9cce8780b47f3b42ad010ee4b9b2659d7c9.tar.xz
wireguard-openbsd-245bc9cce8780b47f3b42ad010ee4b9b2659d7c9.zip
Stop embedding the build time in the Perl binary.
This is a backport of commit 6baa8d with the local addition of: undef PERL_BUILD_DATE ok afresh1@
-rw-r--r--gnu/usr.bin/perl/perl.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/gnu/usr.bin/perl/perl.c b/gnu/usr.bin/perl/perl.c
index be79d1b17a3..1c2588bf6c9 100644
--- a/gnu/usr.bin/perl/perl.c
+++ b/gnu/usr.bin/perl/perl.c
@@ -1776,15 +1776,22 @@ S_Internals_V(pTHX_ CV *cv)
PUSHs(Perl_newSVpvn_flags(aTHX_ non_bincompat_options,
sizeof(non_bincompat_options) - 1, SVs_TEMP));
-#ifdef __DATE__
-# ifdef __TIME__
+#ifndef PERL_BUILD_DATE
+# ifdef __DATE__
+# ifdef __TIME__
+# define PERL_BUILD_DATE __DATE__ " " __TIME__
+# else
+# define PERL_BUILD_DATE __DATE__
+# endif
+# endif
+#endif
+
+#undef PERL_BUILD_DATE
+
+#ifdef PERL_BUILD_DATE
PUSHs(Perl_newSVpvn_flags(aTHX_
- STR_WITH_LEN("Compiled at " __DATE__ " " __TIME__),
- SVs_TEMP));
-# else
- PUSHs(Perl_newSVpvn_flags(aTHX_ STR_WITH_LEN("Compiled on " __DATE__),
+ STR_WITH_LEN("Compiled at " PERL_BUILD_DATE),
SVs_TEMP));
-# endif
#else
PUSHs(&PL_sv_undef);
#endif