Skip to content
Snippets Groups Projects
Commit 8d20ca97 authored by Andreas Hasenack's avatar Andreas Hasenack Committed by Otto Kekäläinen
Browse files

Disable LTO on Ubuntu

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/mariadb-10.6/+bug/1970634
MariaDB ticket: https://jira.mariadb.org/browse/MDEV-25633

When built with LTO on Ubuntu, MariaDB does not catch an exception when
the uring initialization fails due to a low RLIMIT_MEMLOCK value.
parent 8e410984
No related branches found
No related tags found
1 merge request!13d/rules: disable LTO on Ubuntu
Pipeline #376896 passed with warnings with stages
in 1 hour, 10 minutes, and 18 seconds
......@@ -3,6 +3,12 @@
# Enable Debian Hardening
# https://wiki.debian.org/Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Disable LTO on Ubuntu, see LP: #1970634 and https://jira.mariadb.org/browse/MDEV-25633
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
export DEB_BUILD_MAINT_OPTIONS += optimize=-lto
endif
DPKG_EXPORT_BUILDFLAGS = 1
# Include all defaults, including buildflags.mk
include /usr/share/dpkg/default.mk
......
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