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 <rofl0r@users.noreply.github.com>2021-10-01 11:56:14 +0300
committerrofl0r <rofl0r@users.noreply.github.com>2021-10-01 11:58:19 +0300
commit7de7dd0de1ff387a627620ac3482b4cd9b3fba95 (patch)
treed196e33cf9fbf31c5f7e85b697d3d43c33dcc9a5
parent1015efaf161deaee6f6b2d0b6d6a0d3378105258 (diff)
configure: fix regression in detecting linker options
introduced in 83bfa0b61df4803c0c3f94c910d9c25d825c0ed1, the check_link_silent option always returned the result from the rm -f command rather than the result from the compiler. fixes #400
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index b6f8493..233ea73 100755
--- a/configure
+++ b/configure
@@ -50,8 +50,10 @@ check_compile_run() {
check_link_silent() {
printf "$2" > "$tmpc"
- $CC $OUR_CPPFLAGS $CPPFLAGS $1 $CFLAGS "$tmpc" -o "$tmpc".out >/dev/null 2>&1
+ local res=0
+ $CC $OUR_CPPFLAGS $CPPFLAGS $1 $CFLAGS "$tmpc" -o "$tmpc".out >/dev/null 2>&1 || res=1
rm -f "$tmpc".out
+ return $res
}
check_link() {