UPD: Set run-time library search path (fixes #276, #1316)

(cherry picked from commit 6bb8c1c67f)
This commit is contained in:
Alexander Koblov 2023-11-14 18:09:03 +03:00
commit 8a1ecf8977

View file

@ -71,8 +71,8 @@ cp -a lib/$CPU_TARGET/*.so* $DC_ROOT_DIR/
cp -a lib/$CPU_TARGET/$LCL_PLATFORM/*.so* $DC_ROOT_DIR/
popd
# Copy script for execute portable version
install -m 755 $DC_SOURCE_DIR/doublecmd.sh $DC_ROOT_DIR/
# Set run-time library search path
patchelf --set-rpath '$ORIGIN' $DC_ROOT_DIR/doublecmd
# Make portable config file
mkdir $DC_ROOT_DIR/settings