Open jhnphm opened 3 years ago
John, it's up to the user to figure out how to integrate cFS into their build environment. I don't think this is something we would consider since we aren't a c++ project either. Someone else correct me if I'm wrong.
As @klystron78 mentioned, this would probably be more appropriate in a mission specific PSP (for the SP0 or whatever you are using). Right now our scope for the open source is still c (unless/until we get resources to expand support/testing to include c++).
In that case, perhaps leave CMAKE_CXX_CREATE_SHARED_MODULE unset if it's not supported so it can be overridden in the toolchain file/PSP ? Although I guess the PSP repo is for the most part cloned and owned so it's not a huge deal if left as-is.
@mprather was the CMAKE_CXX_CREATE_SHARED_MODULE the issue for you also?
Is your feature request related to a problem? Please describe. VxWorks requires a tool called a "muncher" in order to generate stubs required for static destructors/constructors to run, when building for C++.
Describe the solution you'd like Run the muncher. An example implementation is below:
In VxWorks-CFE.cmake, change
to
Somewhere in the target-specific PSP cmakefiles or toolchain file, define something like (the below is for SP0-S, derived from the workbench-generated makefiles)
Describe alternatives you've considered Leave
CMAKE_CXX_CREATE_SHARED_MODULE
unset so it can be overridden in the toolchain file.Additional context N/A
Requester Info John N Pham, Northrop Grumman