From f7c0538b3abe28167855ea40001b40702ef8ddf9 Mon Sep 17 00:00:00 2001 From: Ron Yorston <rmy@pobox.com> Date: Tue, 23 Jun 2015 09:41:21 +0100 Subject: libbb: add details of build environment to banner If the environment variable MINGW_VERSION is set print its contents on a line after the BusyBox version string. --- libbb/appletlib.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbb') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 54f6c2c83..eafc5fce8 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -635,6 +635,12 @@ static int busybox_main(char **argv) dup2(1, 2); full_write2_str(bb_banner); /* reuse const string */ full_write2_str(" multi-call binary.\n"); /* reuse */ +#if ENABLE_PLATFORM_MINGW32 + if ((a=getenv("MINGW_VERSION"))) { + full_write2_str(a); + full_write2_str("\n\n"); + } +#endif full_write2_str( "BusyBox is copyrighted by many authors between 1998-2015.\n" "Licensed under GPLv2. See source distribution for detailed\n" -- cgit v1.2.3-55-g6feb