mirror of
https://git.koehlerweb.org/frodovdr/guac-install
synced 2025-07-03 16:13:32 +02:00
Fix gcc-7 & Update Docker (#38)
* Force guacd compile with gcc-6 to resolve gcc-7 compile issues * Update docker version
This commit is contained in:
@ -72,12 +72,18 @@ if [ $? -ne 0 ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# Hack for gcc7
|
||||
if [[ $(gcc --version | head -n1 | grep -oP '\)\K.*' | awk '{print $1}' | grep "^7" | wc -l) -gt 0 ]]
|
||||
then
|
||||
apt-get -y install gcc-6
|
||||
fi
|
||||
|
||||
# Upgrade Guacamole Server
|
||||
tar -xzf guacamole-server-${GUACVERSION}.tar.gz
|
||||
cd guacamole-server-${GUACVERSION}
|
||||
./configure --with-init-dir=/etc/init.d
|
||||
make
|
||||
make install
|
||||
CC="gcc-6" ./configure --with-init-dir=/etc/init.d
|
||||
CC="gcc-6" make
|
||||
CC="gcc-6" make install
|
||||
ldconfig
|
||||
systemctl enable guacd
|
||||
cd ..
|
||||
|
Reference in New Issue
Block a user