Skip to content
Snippets Groups Projects
Commit 60ee62c4 authored by Gunnar Beutner's avatar Gunnar Beutner
Browse files

Enable ICINGA2_LTO_BUILD by default

parent cfe29e89
No related branches found
No related tags found
No related merge requests found
......@@ -2,19 +2,24 @@
#export DH_VERBOSE=1
LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
# disable unity builds for arches with low memory
# disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mips),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
%:
......@@ -44,7 +49,8 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DICINGA2_WITH_STUDIO=true \
$(UNITY_BUILD)
$(UNITY_BUILD) \
$(LTO_BUILD)
override_dh_auto_install:
dh_auto_install
......
......@@ -2,19 +2,24 @@
#export DH_VERBOSE=1
LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
# disable unity builds for arches with low memory
# disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mips),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
......@@ -46,7 +51,8 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DICINGA2_WITH_STUDIO=true \
$(UNITY_BUILD)
$(UNITY_BUILD) \
$(LTO_BUILD)
override_dh_auto_install:
dh_auto_install
......
......@@ -2,19 +2,24 @@
#export DH_VERBOSE=1
LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
# disable unity builds for arches with low memory
# disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mips),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
......@@ -46,7 +51,8 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DICINGA2_WITH_STUDIO=true \
$(UNITY_BUILD)
$(UNITY_BUILD) \
$(LTO_BUILD)
override_dh_auto_install:
dh_auto_install
......
......@@ -2,19 +2,24 @@
#export DH_VERBOSE=1
LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
# disable unity builds for arches with low memory
# disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mips),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif
......@@ -45,7 +50,8 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DICINGA2_WITH_STUDIO=false \
$(UNITY_BUILD)
$(UNITY_BUILD) \
$(LTO_BUILD)
override_dh_auto_install:
dh_auto_install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment