File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ENV TROOT="/tmp/build_cache_root"
2323ENV PIPCACHE_DIR="${CACHE_ROOT}/pip"
2424
2525RUN dnf --refresh -y makecache
26- RUN dnf install -y perl perl-core clang lld
26+ RUN dnf install -y perl perl-core clang lld llvm
2727RUN dnf install -y pv || true
2828RUN dnf clean -y all
2929
@@ -58,7 +58,8 @@ ENV CCACHE_COMPILERCHECK="content"
5858ARG TARGETPLATFORM
5959ENV SET_ENV="sh ./scripts/build/set_env.sh platformopts"
6060
61- RUN env -S `${SET_ENV}` \
61+ RUN IFS='
62+ ' set -- `${SET_ENV}` && env -S "${@}" \
6263 ${PYTHON_CMD} -m build --wheel
6364RUN auditwheel repair dist/*.whl --wheel-dir dist_out
6465RUN make -C rtpproxy clean
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ MYDIR="`dirname ${_SELF}`"
88
99BDIR=" ${MYDIR} /../build"
1010
11- if [ " ${CC} " = " clang" ]
11+ if ${CC} -v 2>&1 | grep -q " clang"
1212then
1313 export AR=" llvm-ar"
1414 export RANLIB=" llvm-ranlib"
7070 then
7171 rm -rf ${MYDIR} /../openssl
7272 fi
73- if ! CFLAGS=" ${CFLAGS_opt} " LDFLAGS=" ${LDFLAGS_opt} " ./configure \
73+ if ! CFLAGS=" ${CFLAGS_opt} " LDFLAGS=" ${LDFLAGS_opt} " LIBS=" ${SRTP_LIBS} " \
74+ ./configure \
7475 --prefix=" ${BDIR} " --enable-static --disable-shared --enable-openssl \
7576 --with-openssl-dir=" ${BDIR} "
7677 then
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ platformopts() {
1717 echo " CCACHE_MAXSIZE=40M"
1818 ;;
1919 esac
20+ if [ -e /opt/rh/gcc-toolset-14/root/usr/lib/gcc/i686-redhat-linux/14/libatomic.a ]
21+ then
22+ echo ' SRTP_LIBS="-L/opt/rh/gcc-toolset-14/root/usr/lib/gcc/i686-redhat-linux/14 -l:libatomic.a"'
23+ fi
2024 echo " SAVE_SPACE=yes"
2125}
2226
You can’t perform that action at this time.
0 commit comments