mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Sanitizer: Support address sanitizer for x86_64 platform (#3212)
* Sanitizer: Support address sanitizer for x86_64 platform * Sanitizer: Not mac os need -static-libasan * Sanitizer: Add script for docker test. * Sanitizer: Refine build script. * Santizer: Fix ossrs/srs:dev-gcc7-cache cannot find libasan bug * Sanitizer: Support sanitizer when use ossrs/srs:dev-cache and ubuntuxx-cache * Sanitizer: Add sanitizer-static config Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
e10fa6dc91
commit
961f701929
8 changed files with 76 additions and 9 deletions
|
@ -16,7 +16,7 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
# Install depends tools.
|
||||
RUN apt-get update && apt-get install -y gcc make g++ patch unzip perl git
|
||||
RUN apt-get update && apt-get install -y gcc make g++ patch unzip perl git libasan5
|
||||
|
||||
# Copy source code to docker.
|
||||
COPY . /srs
|
||||
|
@ -24,7 +24,7 @@ WORKDIR /srs/trunk
|
|||
|
||||
# Build and install SRS.
|
||||
# Note that SRT is enabled by default, so we configure without --srt=on.
|
||||
RUN ./configure --jobs=${JOBS} --gb28181=on && make -j${JOBS} && make install
|
||||
RUN ./configure --jobs=${JOBS} --gb28181=on --sanitizer-static=on && make -j${JOBS} && make install
|
||||
|
||||
# All config files for SRS.
|
||||
RUN cp -R conf /usr/local/srs/conf && \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue