[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.
This commit is contained in:
Frans de Jonge
2019-11-18 15:24:44 +01:00
committed by GitHub
parent 50878eab9e
commit afd277901a

5
kodev
View File

@@ -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() {