Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2018-04-12 09:13:26 +0300
committerrofl0r <retnyg@gmx.net>2018-04-12 09:13:26 +0300
commitbb30d867fef3f69ec0c84414c09039e1f89b34fd (patch)
tree093cd783dace61becd726398d4cbd011e605c155
parent06c20ed394a65cc9e959a30ea74b8b256f76c1fa (diff)
configure: prevent bug overwriting config.mak on OpenBSD
the command writing the openbsd line was using >> before the call which was meant to initialize config.mak using >. closes #228
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index b1eec43..b13a196 100755
--- a/configure
+++ b/configure
@@ -130,6 +130,7 @@ if [ -z "$CC" ] ; then
CC=cc
fi
+echo > config.mak
bsd_detected=false
isbsd() {
@@ -162,7 +163,7 @@ OUR_CPPFLAGS="$OUR_CPPFLAGS -DBROKEN_FCLOSE"
}
check_define __sun && check_define __SVR4 && solaris_detected=true
-echo "CC=$CC">config.mak
+echo "CC=$CC">>config.mak
[ -z "$CPPFLAGS" ] || echo "CPPFLAGS=$CPPFLAGS">>config.mak
[ -z "$CFLAGS" ] || echo "USER_CFLAGS=$CFLAGS">>config.mak
[ -z "$LDFLAGS" ] || echo "USER_LDFLAGS=$LDFLAGS">>config.mak