[Bug 286494] devel/cmake*: Respect CFLAGS after bootstrapping
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 1 12:27:11 BST 2025
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286494
--- Comment #2 from Daniel Engberg <diizzy at FreeBSD.org> ---
This issue occurs after the bootstrapping process,
Current:
[ 0%] Building C object Source/kwsys/CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o
cd /usr/ports/devel/cmake-core/work/.build/Source/kwsys && /usr/bin/cc
-DKWSYS_NAMESPACE=cmsys -I/usr/ports/devel/cmake-core/work/.build/Source -O2
-pipe -march=znver4 -I/usr/include -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -O3 -DNDEBUG -std=gnu11
-DKWSYS_C_HAS_PTRDIFF_T=1 -DKWSYS_C_HAS_SSIZE_T=1
-DKWSYS_C_HAS_CLOCK_GETTIME_MONOTONIC=1 -MD -MT
Source/kwsys/CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o -MF
CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o.d -o
CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o -c
/usr/ports/devel/cmake-core/work/cmake-3.31.6/Source/kwsys/ProcessUNIX.c
vs
cd /usr/ports/devel/cmake-core/work/.build/Source/kwsys && /usr/bin/cc
-DKWSYS_NAMESPACE=cmsys -I/usr/ports/devel/cmake-core/work/.build/Source -O2
-pipe -march=znver4 -I/usr/include -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -std=gnu11 -DKWSYS_C_HAS_PTRDIFF_T=1
-DKWSYS_C_HAS_SSIZE_T=1 -DKWSYS_C_HAS_CLOCK_GETTIME_MONOTONIC=1 -MD -MT
Source/kwsys/CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o -MF
CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o.d -o
CMakeFiles/cmsys_c.dir/ProcessUNIX.c.o -c
/usr/ports/devel/cmake-core/work/cmake-3.31.6/Source/kwsys/ProcessUNIX.c
Notice that "-O3 -DNDEBUG" that gets injected
We should however add -DNDEBUG manually in this case to CXXFLAGS in the port
Makefile. I'll attach a patch file for this too.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list