summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-06-09 14:42:08 +0200
committerChristian Pointner <equinox@spreadspace.org>2018-06-09 14:42:08 +0200
commit134213b0f2ac4c5cdbcd4ca8b721d873a91061cc (patch)
treea906bccc3981303d0159aec70beb6a412a3020f9
parentfixed Readme (diff)
make build reproducible
-rwxr-xr-xsrc/configure6
-rw-r--r--src/options.c8
2 files changed, 4 insertions, 10 deletions
diff --git a/src/configure b/src/configure
index 4d3a930..bd00b18 100755
--- a/src/configure
+++ b/src/configure
@@ -195,9 +195,6 @@ if which git >/dev/null; then
fi
fi
-HOSTNAME=`hostname`
-DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
-
cat > config.h <<EOF
/*
* tcpproxy config header
@@ -210,8 +207,7 @@ cat > config.h <<EOF
#ifndef TCPPROXY_config_h_INCLUDED
#define TCPPROXY_config_h_INCLUDED
-#define VERSION_STRING_0 "tcpproxy version $VERSION"
-#define VERSION_STRING_1 "built on $HOSTNAME, $DATE"
+#define VERSION_STRING "tcpproxy version $VERSION"
#define TARGET "$TARGET"
#define PREFIX "$PREFIX"
diff --git a/src/options.c b/src/options.c
index ed22a19..cb93898 100644
--- a/src/options.c
+++ b/src/options.c
@@ -324,13 +324,11 @@ void options_print_usage()
void options_print_version()
{
- printf("%s\n", VERSION_STRING_0);
+ printf("%s\n", VERSION_STRING);
#if defined(__clang__)
- printf("%s, using CLANG %s\n", VERSION_STRING_1, __clang_version__);
+ printf("built using CLANG %s\n", __clang_version__);
#elif defined(__GNUC__)
- printf("%s, using GCC %d.%d.%d\n", VERSION_STRING_1, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
-#else
- printf("%s\n", VERSION_STRING_1);
+ printf("built using GCC %d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
#endif
}