Skip to content

question: will it make sense to link against common_clang rather than load it? #71

Closed
@dvrogozh

Description

@dvrogozh

CCModule.pModule = dlopen(CCModule.pModuleName, RTLD_NOW | RTLD_DEEPBIND);

Here libigdfcl.so will dlopen("libcommon_clang.so"). Will it make sense to link against it instead?

That's probably can be reformulated as: does usage scenario exists when libigdfcl.so don't need libcommon_clang.so to work? If such case don't exist, this can vote towards linking against this library on Linux since:

  1. This will make dependency explicit and simplify diagnostic in case of missing dependency
  2. This will simplify the code since we will avoid the code to load/unload library, fetch symbols, check for non-null handle

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions