You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some would like to force the build to only build static libs for all components and SCR, so that they force their app to link with static libs. In this case, they are fine with having each library in its own .a, but they just want to disable the .so libs from being built. They are testing ideas now, but I wanted to document those here so I don't forget.
For CMake builds, they pointed to our use of SHARED in ADD_LIBRARY. If we drop SHARED, then cmake will build shared libs depending on its BUILD_SHARED_LIBS=ON/OFF setting.
For lwgrp and dtcmp, we may need to conditionally add a configure flag like --enabled-shared=no.
The text was updated successfully, but these errors were encountered:
It was discovered that the tests and/or examples don't build on a static-only build. As a work around, there are options coming to disable building the tests and examples.
However, we need to figure out how to get those to build in case someone really needs them to build in static-only builds.
Now that we have the release tarball, this might only be an issue for a static build with bootstrap. Anyway, since most users will build through spack or the release tarball, this is no longer high priority.
Some would like to force the build to only build static libs for all components and SCR, so that they force their app to link with static libs. In this case, they are fine with having each library in its own
.a
, but they just want to disable the.so
libs from being built. They are testing ideas now, but I wanted to document those here so I don't forget.For CMake builds, they pointed to our use of
SHARED
inADD_LIBRARY
. If we dropSHARED
, then cmake will build shared libs depending on itsBUILD_SHARED_LIBS=ON/OFF
setting.For lwgrp and dtcmp, we may need to conditionally add a configure flag like
--enabled-shared=no
.The text was updated successfully, but these errors were encountered: