Skip to content

libapparmor: fix building with link time optimization (lto)

John Johansen requested to merge jjohansen/apparmor:fix-lto into master

Currently libapparmor fails to build when lto is used because it uses the asm directive to provide different version of some symbols. Unfortunately gcc does not recognize this and the symbols defined by asm are lost and optimized out by lto and then the link fails.

Fixes: #214 (closed) Signed-off-by: John Johansen john.johansen@canonical.com

Merge request reports