Skip to content

Commit e2d4def

Browse files
author
CI Bot
committed
Fix: Add missing math library (-lm) for linker
The CTS build was failing with undefined reference to log10 symbol. Adding explicit -lm flags to CMAKE_C_FLAGS and CMAKE_EXE_LINKER_FLAGS ensures the math library is linked properly.
1 parent bb64932 commit e2d4def

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/openvx-conformance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ jobs:
103103
echo "Running cmake..."
104104
cmake .. \
105105
-DCMAKE_BUILD_TYPE=Release \
106+
-DCMAKE_C_FLAGS="-lm" \
107+
-DCMAKE_EXE_LINKER_FLAGS="-lm" \
106108
-DOPENVX_INCLUDES="${{ github.workspace }}/include;${{ github.workspace }}/OpenVX-cts/include" \
107109
-DOPENVX_LIBRARIES="${{ github.workspace }}/target/release/libopenvx_core.so;${{ github.workspace }}/target/release/libopenvx_ffi.so" \
108110
-DOPENVX_DEFINITIONS="OPENVX_CONFORMANCE_VISION" \

0 commit comments

Comments
 (0)