Commit 194fe55
iox-#XXXX Auto-detect sys/acl.h availability on Linux
On Linux, IOX_PLATFORM_FEATURE_ACL previously defaulted to ON
unconditionally. This causes build failures when using hermetic
toolchains (e.g. Zig/clang sysroots) that do not provide sys/acl.h
or libacl.
Use CMake's check_include_file to probe for sys/acl.h at configure
time. If the header is absent, default IOX_PLATFORM_FEATURE_ACL to
OFF so the existing no-op stub is used instead. The option can still
be overridden explicitly by the user.
This unblocks hermetic and minimal toolchain builds without requiring
out-of-tree patches (e.g. rules_ros2_iceoryx_no_acl.patch).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent ffd3610 commit 194fe55
File tree
1 file changed
+10
-1
lines changed- iceoryx_platform/linux/cmake
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
42 | 51 | | |
43 | 52 | | |
44 | 53 | | |
0 commit comments