[Latent-issue] Avoid duplications when handling the dependencies for static and shared libraries routines #34
Labels
bug
Something isn't working
build-script
Build script related stuff.
help wanted
Extra attention is needed
Milestone
I've noticed that the front-end bash build script for
electrostatic-core
which provides the build routines for the genericCMakeLists.txt
script, has a potential issue which is a latent one (i.e., not manifested) while declaring the dependencies to be linked with output binaries; that is this line:This line entails finding all the dependencies whether static archives or shared libraries that matches the pattern ending in *.so or *.a, and then using them for both routines of building the static and the shared libraries in the CMakeLists.txt script:
So, this introduces a potential of duplication of function tables if not handled internally by GCC which is a scripting anti-pattern anyway (i.e., Merging of mutually exclusive or disjoint routines that are rather incompatible).
Reasons for latency and no error reports:
The main reason for latency is entailed to the fact that the
electrostatic-core
module haven't got any external dependencies, yet. While the internal dependencies linked (including the math and the pthread libraries) are handled internally by the linker at compile-time.The text was updated successfully, but these errors were encountered: