Skip to content

Commit 8099e2d

Browse files
committed
Fix link error by explicitly linking libc for _cext_shared
Signed-off-by: cdunning <cdunning@nvidia.com>
1 parent 705b7e8 commit 8099e2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cext/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if (ENABLE_ASAN)
6464
endif()
6565

6666
add_library(_cext_shared SHARED module.cpp)
67-
target_link_libraries(_cext_shared _cext_static ${Python_LIBRARIES} ${asan_library})
67+
target_link_libraries(_cext_shared _cext_static ${Python_LIBRARIES} ${asan_library} c)
6868
target_compile_options(_cext_shared PUBLIC ${cext_compile_flags} ${nostdlib_flags})
6969
target_include_directories(_cext_shared PRIVATE ${cext_include_dirs})
7070
target_link_options(_cext_shared PUBLIC ${cext_link_flags} ${nostdlib_flags} -Wl,--no-undefined)

0 commit comments

Comments
 (0)