aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc/configure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bc/configure.sh')
-rwxr-xr-xcontrib/bc/configure.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/bc/configure.sh b/contrib/bc/configure.sh
index ae1675cde97d..310c26882906 100755
--- a/contrib/bc/configure.sh
+++ b/contrib/bc/configure.sh
@@ -253,7 +253,7 @@ replace_ext() {
_replace_ext_ext1="$2"
_replace_ext_ext2="$3"
- _replace_ext_result=${_replace_ext_file%.$_replace_ext_ext1}.$_replace_ext_ext2
+ _replace_ext_result="${_replace_ext_file%.$_replace_ext_ext1}.$_replace_ext_ext2"
printf '%s\n' "$_replace_ext_result"
}
@@ -1199,17 +1199,12 @@ SRC_TARGETS=""
src_files=$(find_src_files $unneeded)
-temp_ifs="$IFS"
-IFS=$'\n'
-
for f in $src_files; do
o=$(replace_ext "$f" "c" "o")
SRC_TARGETS=$(printf '%s\n\n%s: %s %s\n\t$(CC) $(CFLAGS) -o %s -c %s\n' \
"$SRC_TARGETS" "$o" "$headers" "$f" "$o" "$f")
done
-IFS="$temp_ifs"
-
contents=$(replace "$contents" "HEADERS" "$headers")
contents=$(replace "$contents" "BC_ENABLED" "$bc")