exaloop/codon

static compilation option?

开放

#82 创建于 2022年12月10日

 (8 条评论) (9 个反应) (0 位负责人)C++ (492 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (13,667 个星标)
PR 合并指标
 (平均合并 5天 10小时) (30 天内合并 3 个 PR)

描述

After I successfully compiled a test python program using codon build <demo.py>, on macOS Monterey (intel), I checked the dependencies as per the following:

$ otool -L demo
demo:
	@rpath/libcodonrt.dylib (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libomp.dylib (compatibility version 5.0.0, current version 5.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)

The two @rpath dependencies, libcodonrt.dylib and libomp.dylib are included in the codon distribution, they are 1.2M and 772K respectively so not so large.

Is there any thought to having static libraries of these two dependencies available so one may statically compile the executable instead to make it more relocatable?

贡献者指南