diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2021-02-22 07:09:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 07:09:40 -0500 |
commit | be980fd137723de86c996178fd63e6babf735121 (patch) | |
tree | 2e29715e9aa7b282feed280d60852606851c2122 /netdata.spec.in | |
parent | 9d0f240b84e21d62ea0ea0327699b1de0255b22a (diff) |
Fixed condition controlling use of static LWS in RPM builds. (#10661)
The original intent was to only use a static copy of LWS if we couldn’t
use a system copy. Due to two incorrect conditionals in the spec file
though, what was actually happening was that we were using a static
build of LWS on systems where we could use a system copy, and not
linking against LWS at all on other systems.
This fixes those conditionals so that we use a system copy if available,
and provide a static copy if a system copy is not available.
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index ea2519603b..f55dcfe3d4 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -221,7 +221,7 @@ happened, on your systems and applications. %prep %setup -q -n %{name}-%{version} export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-mosquitto.sh ${RPM_BUILD_DIR}/%{name}-%{version} -%if 0%{?centos_ver} >= 8 || 0%{?fedora} +%if 0%{?centos_ver} < 8 || 0%{!?fedora:1} export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-lws.sh ${RPM_BUILD_DIR}/%{name}-%{version} %endif # Only bundle libJudy if this isn't Fedora or SUSE @@ -239,7 +239,7 @@ autoreconf -ivf %if 0%{!?fedora:1} && 0%{!?suse_version:1} --with-libJudy=externaldeps/libJudy \ %endif - %if 0%{?centos_ver} >= 8 || 0%{?fedora} + %if 0%{?centos_ver} < 8 || 0%{!?fedora:1} --with-bundled-lws=externaldeps/libwebsockets \ %endif --prefix="%{_prefix}" \ |