summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-27 18:29:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-27 18:29:11 -0400
commitccf55719102d3a0c2933aceb3c370b8d06d1456a (patch)
tree46cf7613ac5631f59a7565d8d12636800a2a66c1
parentba2c04072c2f6b1fc50dc8ff3a41098ea6e634e6 (diff)
downloadfork-ledger-ccf55719102d3a0c2933aceb3c370b8d06d1456a.tar.gz
fork-ledger-ccf55719102d3a0c2933aceb3c370b8d06d1456a.tar.bz2
fork-ledger-ccf55719102d3a0c2933aceb3c370b8d06d1456a.zip
fixed a serious problem that prevented environment settings from being read
-rwxr-xr-xacprep2
-rw-r--r--option.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/acprep b/acprep
index 81a4a853..36193dea 100755
--- a/acprep
+++ b/acprep
@@ -29,7 +29,7 @@ elif [ "$1" = "--flat-opt" ]; then
elif [ "$1" = "--safe-opt" ]; then
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" \
CXXFLAGS="-fomit-frame-pointer -fastf -mcpu=7450 -DDEBUG_LEVEL=1" \
- --disable-shared
+ --enable-python --disable-shared
elif [ "$1" = "--perf" ]; then
./configure CPPFLAGS="$INCDIRS" LDFLAGS="$LIBDIRS" CXXFLAGS="-g -pg"
fi
diff --git a/option.cc b/option.cc
index b34a972b..b04865bc 100644
--- a/option.cc
+++ b/option.cc
@@ -155,9 +155,9 @@ void process_environment(std::list<option_t>& options,
*q && *q != '=' && r - buf < 128;
q++)
if (*q == '_')
- *r++ += '-';
+ *r++ = '-';
else
- *r++ += std::tolower(*q);
+ *r++ = std::tolower(*q);
*r = '\0';
if (*q == '=')