diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2022-12-08 14:37:56 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-01-03 13:56:25 +0000 |
commit | 1c4da332ee6e0d948f85a63f74cb27e89075c011 (patch) | |
tree | 03a01bf796b4d435cd233c89ed3d05c562ed3fd1 /src/plugins/mm-shared-common.h | |
parent | 1dd70be4c834ba025ff16b343aa4032a8c64fb71 (diff) |
build: new option to build plugins within the daemon binary
Instead of creating libmm-plugin* and libmm-shared* libraries that are
dlopen()-ed on runtime, allow incorporating all plugins into the
daemon binary itself.
This makes the startup of the daemon much faster and also avoids
issues with builds that require linker namespace isolation.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/674
Diffstat (limited to 'src/plugins/mm-shared-common.h')
-rw-r--r-- | src/plugins/mm-shared-common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/mm-shared-common.h b/src/plugins/mm-shared-common.h index a9183ee6..d795624f 100644 --- a/src/plugins/mm-shared-common.h +++ b/src/plugins/mm-shared-common.h @@ -33,9 +33,13 @@ #define MM_VISIBILITY #endif -#define MM_DEFINE_SHARED(MyShared) \ +#if defined WITH_BUILTIN_PLUGINS +# define MM_DEFINE_SHARED(unused) +#else +# define MM_DEFINE_SHARED(MyShared) \ MM_VISIBILITY int mm_shared_major_version = MM_SHARED_MAJOR_VERSION; \ MM_VISIBILITY int mm_shared_minor_version = MM_SHARED_MINOR_VERSION; \ MM_VISIBILITY const char *mm_shared_name = #MyShared; +#endif #endif /* MM_SHARED_COMMON_H */ |