mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Merge pull request #9 from podarok/add_mpp_ffmpeg_arm64
feat: add arm64 nginx crc optimization
This commit is contained in:
commit
04d910aa69
@ -52,6 +52,13 @@ rm v${RTMP_MODULE_VERSION}.tar.gz
|
|||||||
|
|
||||||
cd /tmp/nginx
|
cd /tmp/nginx
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
CC_OPT="-O3 -Wno-error=implicit-fallthrough"
|
||||||
|
|
||||||
|
if [ "$ARCH" = "aarch64" ]; then
|
||||||
|
CC_OPT="${CC_OPT} -march=armv8-a+crc"
|
||||||
|
fi
|
||||||
|
|
||||||
./configure --prefix=/usr/local/nginx \
|
./configure --prefix=/usr/local/nginx \
|
||||||
--with-file-aio \
|
--with-file-aio \
|
||||||
--with-http_sub_module \
|
--with-http_sub_module \
|
||||||
@ -60,7 +67,7 @@ cd /tmp/nginx
|
|||||||
--add-module=../nginx-vod-module \
|
--add-module=../nginx-vod-module \
|
||||||
--add-module=../nginx-secure-token-module \
|
--add-module=../nginx-secure-token-module \
|
||||||
--add-module=../nginx-rtmp-module \
|
--add-module=../nginx-rtmp-module \
|
||||||
--with-cc-opt="-O3 -Wno-error=implicit-fallthrough"
|
--with-cc-opt="${CC_OPT}"
|
||||||
|
|
||||||
make -j$(nproc) && make install
|
make -j$(nproc) && make install
|
||||||
rm -rf /usr/local/nginx/html /usr/local/nginx/conf/*.default
|
rm -rf /usr/local/nginx/html /usr/local/nginx/conf/*.default
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user