cactusdynamics / cactus-rt

A C++ framework for programming real-time applications
Mozilla Public License 2.0
84 stars 19 forks source link

Added -fPIC target compile option to enable downstream linking by shared library #82

Closed marip8 closed 17 hours ago

marip8 commented 4 weeks ago

I get an issue linking a shared library with the static target provided by this project. My compiler suggested recompiling cactus_rt with the -fPIC option, and it subsequently builds and works correctly. Here is the GCC documentation about the option for reference

shuhaowu commented 17 hours ago

We may consider adding an option for this as a compile-time optional variable in the (medium?) future.