1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix: local toxcore install with bootstrap.sh

Fixes #5199
This commit is contained in:
tox-user 2018-07-01 17:17:19 +00:00
parent a00af08777
commit 9ca3875079
No known key found for this signature in database
GPG Key ID: 7C132143C1A3A7D4

View File

@ -93,16 +93,16 @@ install_toxcore() {
"${BASE_DIR}/${TOXCORE_DIR}" "${BASE_DIR}/${TOXCORE_DIR}"
pushd ${BASE_DIR}/${TOXCORE_DIR} pushd ${BASE_DIR}/${TOXCORE_DIR}
cmake .
# compile # compile and install
make -j $(nproc)
# install
if [[ $SYSTEM_WIDE = "false" ]] if [[ $SYSTEM_WIDE = "false" ]]
then then
cmake . -DCMAKE_INSTALL_PREFIX=${BASE_DIR}
make -j $(nproc)
make install make install
else else
cmake .
make -j $(nproc)
sudo make install sudo make install
sudo ldconfig sudo ldconfig
fi fi