mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
* 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>
12 lines
380 B
Text
12 lines
380 B
Text
FROM ossrs/srs:dev-gcc7-cache
|
|
|
|
# Install depends tools.
|
|
RUN yum install -y gcc make gcc-c++ patch unzip perl git
|
|
|
|
# Build and install SRS.
|
|
COPY . /srs
|
|
WORKDIR /srs/trunk
|
|
|
|
# Note that we must enable the gcc7 or link failed.
|
|
RUN scl enable devtoolset-7 -- ./configure --srt=on --gb28181=on --utest=on --gcov=on --sanitizer=off --jobs=2
|
|
RUN scl enable devtoolset-7 -- make -j2 utest
|