diff --git a/lib/lib.Makefile b/lib/lib.Makefile index f323ec245..cea4b1bc3 100644 --- a/lib/lib.Makefile +++ b/lib/lib.Makefile @@ -62,6 +62,8 @@ ifneq ($(DBG),yes) LDFLAGS+= $(shell dpkg-buildflags --get LDFLAGS) LDLIBS+= $(shell dpkg-buildflags --get LDLIBS) endif + CFLAGS+=-O3 -flto=auto -ffat-lto-objects + LDFLAGS+=-flto=auto endif endif