I'm using DynamoRIO as a standalone library in a project that does not use cmake, and I've recently encountered the "too-recent" errors after upgrading to Fedora 34 (which has libc 2.33). What I'd prefer is to build libdynamorio.so without any comopnents that interact with libc. But so far it isn't working.
It's possible to make DynamoRIO a subproject in my meson build configuration, but meson gives me no way to call the cmake function "configure_DynamoRIO_standalone". The cmake flag "DYNAMORIO_STANDALONE" is apparently not modifiable from the cmake command line. So I tried "-DBUILD_TOOLS=OFF -DBUILD_[EVERYTHING...]=OFF", but there are endless build problems with references to missing components (for example, dr_api.h includes dr_config.h, which is never generated in this build configuration).
Is there another way to just build libdynamorio.so without any other components? If not, what's the recommended workaround? Some possibilities are:
1. tweak the cmake files to skip "check_libc", since I won't ever use those components anyway
2. make a trivial cmake project as a wrapper and call "configure_DynamoRIO_standalone". These seems fairly complicated since I don't know much about cmake and have never made a cmake project from scratch.
3. tweak the cmake files to understand "-DDYNAMORIO_STANDALONE" on the command line and call "configure_DynamoRIO_standalone".
Does anyone have a recommendation for how to work out this build scenario?