tqchen opened a new pull request, #627:
URL: https://github.com/apache/tvm-ffi/pull/627

   To avoid downstream mistakenly picking up symbols from static 
libstdc++_nonshared, always hide symbols from static libraries linked into 
tvm-ffi shared objects.
   
   This adds a CMake helper for the policy and applies it to tvm_ffi_shared, 
tvm_ffi_testing, and the optional tvm_ffi_cython target on ELF platforms.
   
   Local validation:
   - Configured and built tvm_ffi_shared and tvm_ffi_testing with 
TVM_FFI_USE_LIBBACKTRACE=OFF.
   - Verified generated Ninja link flags include -Wl,--exclude-libs,ALL for 
libtvm_ffi.so and libtvm_ffi_testing.so.
   - Static-runtime before/after probe: upstream without the flag exported 1122 
defined C++ runtime symbols under -static-libstdc++ -static-libgcc; patched 
build exported 0 matching defined C++ runtime symbols.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to