1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-24 12:31:00 +02:00

Link libatomic explicitly in debian Docker image

This commit is contained in:
tyranron 2021-04-22 13:53:18 +03:00
parent 8c0830daa9
commit a775ca47e2
No known key found for this signature in database
GPG Key ID: 762E144FB230A4F0
2 changed files with 13 additions and 1 deletions

9
configure vendored
View File

@ -505,6 +505,15 @@ else
fi
fi
#############################
# Adjustments for Debian
#############################
if [ -f "/etc/debian_version" ] ; then
# https://github.com/coturn/coturn/pull/754#issuecomment-824693226
OSLIBS="${OSLIBS} -latomic"
fi
#############################
# Adjustments for Solaris
#############################

View File

@ -183,7 +183,9 @@ RUN if [ "${coturn_git_ref}" != 'HEAD' ]; then true \
&& true; fi
# Build Coturn from sources.
RUN ./configure --prefix=/usr \
# TODO: Remove `LDFLAGS` with next Coturn release containing `-latomic` flag in `configure`.
RUN LDFLAGS='-latomic' \
./configure --prefix=/usr \
--turndbdir=/var/lib/coturn \
--disable-rpath \
--sysconfdir=/etc/coturn \
@ -237,6 +239,7 @@ RUN apt-get update \
&& update-ca-certificates \
# Install Coturn dependencies.
&& apt-get install -y --no-install-recommends --no-install-suggests \
libatomic1 \
libevent-2.1-6 libevent-core-2.1-6 libevent-extra-2.1-6 \
libevent-openssl-2.1-6 libevent-pthreads-2.1-6 \
libssl1.1 \