exaloop/codon

static compilation option?

オープン

#82 opened on 2022/12/10

 (8 件のコメント) (9 件のリアクション) (0 人の担当者)C++ (492 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (13,667 個のスター)
PR merge metrics
 (平均マージ 5d 10h) (30d で 3 merged PRs)

説明

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?

コントリビューターガイド