From 01a89261601679e731e9a0f80278f5a1196bc72e Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Fri, 19 Apr 2013 11:03:40 -0400 Subject: [PATCH] Shared libs and files linking to them must be copied into our priv dir so that at runtime we can find the correct files. --- c_src/build_deps.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/c_src/build_deps.sh b/c_src/build_deps.sh index 73bc487..005649d 100755 --- a/c_src/build_deps.sh +++ b/c_src/build_deps.sh @@ -171,11 +171,11 @@ case "$1" in -a -f $BASEDIR/system/lib/libwiredtiger_bzip2.so.[0-9].[0-9].[0-9] || build_wt; [ -d $BASEDIR/../priv ] || mkdir ${BASEDIR}/../priv - cp $BASEDIR/system/bin/wt ${BASEDIR}/../priv - cp $BASEDIR/system/lib/libwiredtiger-[0-9].[0-9].[0-9].so ${BASEDIR}/../priv - cp $BASEDIR/system/lib/libwiredtiger_snappy.so ${BASEDIR}/../priv - cp $BASEDIR/system/lib/libwiredtiger_bzip2.so.[0-9].[0-9].[0-9] ${BASEDIR}/../priv - cp $BASEDIR/system/lib/libbz2.so.[0-9].[0-9].[0-9] ${BASEDIR}/../priv - cp $BASEDIR/system/lib/libsnappy.so.[0-9].[0-9].[0-9] ${BASEDIR}/../priv + cp -p -P $BASEDIR/system/bin/wt ${BASEDIR}/../priv + cp -p -P $BASEDIR/system/lib/libwiredtiger-[0-9].[0-9].[0-9].so ${BASEDIR}/../priv + cp -p -P $BASEDIR/system/lib/libwiredtiger_snappy.so ${BASEDIR}/../priv + cp -p -P $BASEDIR/system/lib/libwiredtiger_bzip2.so* ${BASEDIR}/../priv + cp -p -P $BASEDIR/system/lib/libbz2.so.[0-9].[0-9].[0-9] ${BASEDIR}/../priv + cp -p -P $BASEDIR/system/lib/libsnappy.so* ${BASEDIR}/../priv ;; esac