mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-09-22 17:47:50 +02:00
el6: Explicitly link against librt
The linker seems to have problems without.
This commit is contained in:
parent
dc895d630a
commit
85f1a19a57
@ -323,6 +323,11 @@ CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_STUDIO=true"
|
||||
%endif
|
||||
|
||||
%if (0%{?el6} || 0%{?rhel} == 6)
|
||||
# Explicitly link against rt, because ld doesn't detect it automatically
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DCMAKE_EXE_LINKER_FLAGS=-lrt"
|
||||
%endif # el6
|
||||
|
||||
%if "%{?boost_library}" != ""
|
||||
# Boost_NO_BOOST_CMAKE=ON - disable search for cmake
|
||||
# Boost_NO_SYSTEM_PATHS=ON - only search in specified locations
|
||||
|
Loading…
x
Reference in New Issue
Block a user