From 171bc72f6a8f996376ca02e44edd56409b27a927 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 23 Jun 2015 14:45:23 +0100 Subject: libbb: really add build details to banner Look at the environment variable during compilation, not runtime. --- libbb/appletlib.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libbb') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index eafc5fce8..06857ed61 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -635,10 +635,9 @@ 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"); +#if defined(MINGW_VER) + if (strlen(MINGW_VER)) { + full_write2_str(MINGW_VER "\n\n"); } #endif full_write2_str( -- cgit v1.2.3-55-g6feb