fish.spec: turn the BUILD_SHARED_LIBS option off

PCRE2 should only be built as a static library.

Closes #5448.
This commit is contained in:
David Adam 2019-01-02 21:38:30 +08:00
parent 6783c63eee
commit 7191a42ca0

View File

@ -49,6 +49,9 @@ EXTRA_CMAKE_FLAGS="-DCURSES_EXTRA_LIBRARY=tinfo"
export CXXFLAGS="$CXXFLAGS -march=i686"
%endif
%endif
# CMake macros define -DBUILD_SHARED_LIBS:BOOL=ON, which breaks the
# bundled PCRE2 static library.
EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DBUILD_SHARED_LIBS:BOOL=OFF"
# CMake macros define the wrong sysconfdir arguments
EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}"
%if 0%{?rhel_version} && 0%{?rhel_version} < 800