From 32e9e9ace9f34fa547b727f9929b5734a6392984 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 9 Jun 2018 00:43:40 +0200 Subject: make builds reproducible --- src/options.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/options.cpp') diff --git a/src/options.cpp b/src/options.cpp index 038e7b7..8cfc480 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -558,17 +558,16 @@ void Options::printVersion() #else std::cout << "anytun"; #endif - std::cout << VERSION_STRING_0 << std::endl; + std::cout << VERSION_STRING << std::endl; #if defined(__clang__) - std::cout << VERSION_STRING_1 << ", using CLANG " << __clang_version__ << std::endl; + std::cout << "built using CLANG " << __clang_version__ << " with " << CRYPTO_LIB_NAME << " crypto library." << std::endl; #elif defined(__GNUC__) - std::cout << VERSION_STRING_1 << ", using GCC " << __GNUC__ << '.' << __GNUC_MINOR__ - << '.' << __GNUC_PATCHLEVEL__ << std::endl; + std::cout << "built using GCC " << __GNUC__ << '.' << __GNUC_MINOR__ << '.' << __GNUC_PATCHLEVEL__ + << " with " << CRYPTO_LIB_NAME << " crypto library." << std::endl; #else - std::cout << VERSION_STRING_1 << std::endl; + std::cout << "built using an unknown compiler " << CRYPTO_LIB_NAME << " crypto library." << std::endl; #endif - } void Options::printUsage() -- cgit v1.2.3