[fix] Prevent double library loads (#5607)

As per @NiLuJe's suggestions from <https://github.com/koreader/koreader/pull/5598#issuecomment-554767891>.

I'm not super happy with this but being able to easily run the emulator is the most important thing.
pull/5608/head
Frans de Jonge 5 years ago committed by GitHub
parent 50878eab9e
commit afd277901a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,7 +100,10 @@ function setup_env() {
fi
files=$(find . -maxdepth 1 -name 'koreader-emulator-*' | ${SETUP_ENV_GREP_COMMAND})/koreader
assert_ret_zero $? "Emulator not found. Please build it first."
export EMU_DIR=${files[0]}
EMU_DIR=${files[0]}
export EMU_DIR
LD_LIBRARY_PATH=$(realpath "${EMU_DIR}")/libs:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
}
function kodev-fetch-thirdparty() {

Loading…
Cancel
Save