fix(bridge): ix_moe_bridge链接加--unresolved-symbols + probe脚本
ix_moe_bridge.so编译成功但加载时undefined symbol: silu_and_mul 原因:libixformer.so的符号在link time不可用 修复:-Wl,--unresolved-symbols=ignore-in-shared-libs (和ix_unified_bridge.sh用的同一个方案) 运行时符号解析:ix_unified.py已有RTLD_GLOBAL preload逻辑 新增probe_all_so.py:在真机上探测12个.so的全部导出方法
This commit is contained in:
@@ -85,7 +85,7 @@ def main():
|
||||
logger.warning("This is expected if building outside the base image")
|
||||
|
||||
# Build flags
|
||||
extra_ldflags = []
|
||||
extra_ldflags = ["-Wl,--unresolved-symbols=ignore-in-shared-libs"]
|
||||
for d in lib_dirs:
|
||||
extra_ldflags.extend([f"-L{d}", "-Wl,-rpath," + d])
|
||||
extra_ldflags.append("-lixformer")
|
||||
|
||||
Reference in New Issue
Block a user