From: Theo Buehler Subject: Re: cmake neuter LTO detection logic for ports-gcc To: Rafael Sadowski Cc: ports@openbsd.org Date: Mon, 26 Jan 2026 21:18:38 +0100 > > It seems the LTO flags are only in CMAKE_${lang}_COMPILE_OPTIONS_IPO but I > > have not yet figured out where those are pulled into doxygen > > > > -- > > :wq Claudio > > I think you want this: I just tested the equivalent diff that comments out the setting of IPO to true. ok tb > > diff --git a/devel/doxygen/Makefile b/devel/doxygen/Makefile > index 757db6e1e65..34f787c3ab9 100644 > --- a/devel/doxygen/Makefile > +++ b/devel/doxygen/Makefile > @@ -3,6 +3,7 @@ COMMENT= source code documentation generator tool > VERSION= 1.15.0 > DISTNAME= doxygen-${VERSION}.src > PKGNAME= doxygen-${VERSION} > +REVISION= 0 > > CATEGORIES= devel textproc > > diff --git a/devel/doxygen/patches/patch-CMakeLists_txt b/devel/doxygen/patches/patch-CMakeLists_txt > new file mode 100644 > index 00000000000..ad77afce3d0 > --- /dev/null > +++ b/devel/doxygen/patches/patch-CMakeLists_txt > @@ -0,0 +1,13 @@ > +Index: CMakeLists.txt > +--- CMakeLists.txt.orig > ++++ CMakeLists.txt > +@@ -36,9 +36,6 @@ option(enable_coverage "Enable coverage reporting for > + option(enable_tracing "Enable tracing option in release builds [development]" OFF) > + option(enable_lex_debug "Enable debugging info for lexical scanners in release builds [development]" OFF) > + > +-if(CMAKE_BUILD_TYPE STREQUAL "Release") > +- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) > +-endif() > + > + include(CheckCXXCompilerFlag) > + >