summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2017-01-04 21:56:35 +0100
committerChristian Pointner <equinox@anytun.org>2017-01-04 21:56:35 +0100
commit9b3f13c0521d846d89fd0bd0c69e74d17fddbc71 (patch)
tree027c8a5d550e16ba43ccbca527e6bd4dab76852d /src/configure
parentupdated copyright header (diff)
improve build reproducibility
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/configure b/src/configure
index 636a0c4..bd0cbaf 100755
--- a/src/configure
+++ b/src/configure
@@ -153,12 +153,12 @@ if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then
fi
if [ $USE_CLANG -eq 0 ]; then
- CFLAGS='-g -Wall -O2'
- LDFLAGS='-g -Wall -O2'
+ CFLAGS=$CFLAGS'-g -Wall -O2'
+ LDFLAGS=$LDFLAGS'-g -Wall -O2'
COMPILER='gcc'
else
- CFLAGS='-g -O2'
- LDFLAGS='-g -O2'
+ CFLAGS=$CFLAGS'-g -O2'
+ LDFLAGS=$LDFLAGS'-g -O2'
COMPILER='clang'
fi
@@ -270,9 +270,6 @@ if which git >/dev/null; then
fi
fi
-HOSTNAME=`hostname`
-DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
-
cat > version.h <<EOF
/*
* uanytun version info
@@ -285,8 +282,7 @@ cat > version.h <<EOF
#ifndef UANYTUN_version_h_INCLUDED
#define UANYTUN_version_h_INCLUDED
-#define VERSION_STRING_0 "uanytun version $VERSION"
-#define VERSION_STRING_1 "built on $HOSTNAME, $DATE"
+#define VERSION_STRING "uanytun version $VERSION"
#endif