Skip to content

Commit c0298b0

Browse files
committed
contrib: Make X=Y arguments work in install_db4
Trailing X=Y arguments are supposed to be passed through unchanged to bdb's configure. This was not the case, at least with OpenBSD 6.2's shell. Fix this by not storing the arguments in a temporary variable but passing "$@" through directly.
1 parent b798f9b commit c0298b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/install_db4.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ expand_path() {
1717
}
1818

1919
BDB_PREFIX="$(expand_path ${1})/db4"; shift;
20-
BDB_EXTRA_CONFIGURE_FLAGS="${@}"
2120
BDB_VERSION='db-4.8.30.NC'
2221
BDB_HASH='12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef'
2322
BDB_URL="https://download.oracle.com/berkeley-db/${BDB_VERSION}.tar.gz"
@@ -70,7 +69,7 @@ cd build_unix/
7069

7170
"${BDB_PREFIX}/${BDB_VERSION}/dist/configure" \
7271
--enable-cxx --disable-shared --with-pic --prefix="${BDB_PREFIX}" \
73-
"${BDB_EXTRA_CONFIGURE_FLAGS}"
72+
"${@}"
7473

7574
make install
7675

0 commit comments

Comments
 (0)