[Bug 287626] devel/qt6-tools overrides CFLAGS
[email protected] Tue, 04 Aug 2026 22:17:38 +0000
| Newsgroups | gmane.comp.kde.freebsd |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287626 Adriaan de Groot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Adriaan de Groot <[email protected]> --- This isn't a ports thing, this is an upstream-thing: /usr/local/lib/cmake/Qt6/QtCompilerOptimization.cmake sets up optimization flags, and those optimization flags (-O2 for a "OPTIMIZE" build, and -O3 fo= r a "OPTIMIZE_FULL" build) are appended somewhere, which is why -O2 comes after= the CFLAGS from your make.conf.=20 You can test that by editing the file to temporarily add, say, "-DBOGUS" th= ere. As Max said, feel free to provide patches, preferably directly to upstream. If you make the port build with **no** CMake build-type (I believe that by default it builds as "Release"), e.g. at port-level use "make CMAKE_BUILD_TYPE=3DBogus", then you will get the flags for Bogus, which are blank. At ports-level, though, we're not interested in fighting upstream for this. --=20 You are receiving this mail because: You are the assignee for the bug.=