From 0d4ac4f6557da5ce69c7de4ebfce0f5f053933e0 Mon Sep 17 00:00:00 2001 From: wxf Date: Wed, 23 Jun 2021 10:11:30 +0800 Subject: [PATCH] spec: Fix openssl directory --- package/rpm/ZLMediaKit.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/rpm/ZLMediaKit.spec b/package/rpm/ZLMediaKit.spec index 63297d6c..61c5f86b 100644 --- a/package/rpm/ZLMediaKit.spec +++ b/package/rpm/ZLMediaKit.spec @@ -99,6 +99,9 @@ pushd %{_target_platform} -DENABLE_FAAC:BOOL=%{with faac} \ -DENABLE_X264:BOOL=%{with x264} \ -DENABLE_WEBRTC:BOOL=%{with webrtc} \ +%if %{with webrtc} && 0%{?rhel} <= 7 + -DOPENSSL_ROOT_DIR:STRING="/usr/lib64/openssl11;/usr/include/openssl11" \ +%endif -DENABLE_MP4:BOOL=ON \ -DENABLE_RTPPROXY:BOOL=ON \ -DENABLE_API:BOOL=ON \