Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Yavor Doganov
Sat, 07 Nov 2026 17:00
Bug#1153355: cmake: CPPFLAGS are ignored when compiling Objective-C++
Author: Yavor Doganov
Date: Sat, 07 Nov 2026 17:00
Date: Sat, 07 Nov 2026 17:00
52 lines
3988 bytes
3988 bytes
Package: cmake Version: 4.4.5-1 Severity: normal I am working on a package which uses CMake as its build system and contains files in C, C++, Objective-C and Objective-C++. CPPFLAGS, as set for a hardened build of a Debian package, are not used when compiling Objective-C++ so blhc rightfully complains: CPPFLAGS missing (-D_FORTIFY_SOURCE=2): [34/463] /usr/lib/ccache/clang++ -DCXA_ALLOCATE_EXCEPTION_SPECIFIER=noexcept -DGNUSTEP -DNO_LEGACY -DOLDABI_COMPAT=1 -DTYPE_DEPENDENT_DISPATCH -D__OBJC_RUNTIME_INTERNAL__=1 -Dobjc_EXPORTS -x objective-c++ -g -O2 -ffile-prefix-map=/build/reproducible-path/libobjc2-2.2.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++17 -fPIC -Wno-deprecated-objc-isa-usage -Wno-objc-root-class -fobjc-runtime=gnustep-2.0 -MD -MT CMakeFiles/objc.dir/arc.mm.o -MF CMakeFiles/objc.dir/arc.mm.o.d -o CMakeFiles/objc.dir/arc.mm.o -c /build/reproducible-path/libobjc2-2.2.1/arc.mm A workaround is to include buildflags.mk and then set export DEB_OBJCXXFLAGS_MAINT_APPEND := $(CPPFLAGS) -- System Information: Debian Release: forky/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386, x32 Kernel: Linux 7.2.15+deb14-amd64 (SMP w/6 CPU threads; PREEMPT) Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8), LANGUAGE=bg:ru:mk Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages cmake depends on: ii libarchive13t64 3.8.10-2 ii libc6 2.43-7 ii libcurl4t64 8.23.0-1 ii libexpat1 2.10.0-1 ii libgcc-s1 16.2.0-4 ii libjsoncpp26 1.9.8-2 ii librhash1 1.4.6-1.1+b1 ii libstdc++6 16.2.0-4 ii libuv1t64 1.53.0-1 ii procps 2:4.0.7-1.1 ii zlib1g 1:1.3.dfsg+really1.3.2-4 Versions of packages cmake recommends: ii gcc 4:16.2.0-1 ii make 4.4.1-3 Versions of packages cmake suggests: ii cmake-doc 4.4.5-1 ii cmake-format 0.6.13-7 ii elpa-cmake-mode 4.4.0+ds-1 ii ninja-build 1.13.2-1 -- no debconf information
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads