Index: lang/cpp/src/Makefile.am
--- lang/cpp/src/Makefile.am.orig	2023-02-01 17:50:48.000000000 +0100
+++ lang/cpp/src/Makefile.am	2023-11-02 09:31:02.289570000 +0100
@@ -82,11 +82,7 @@
 libgpgmepp_la_LDFLAGS = -no-undefined -version-info \
     @LIBGPGMEPP_LT_CURRENT@:@LIBGPGMEPP_LT_REVISION@:@LIBGPGMEPP_LT_AGE@
 
-if HAVE_MACOS_SYSTEM
-libsuffix=.dylib
-else
-libsuffix=.so
-endif
+libsuffix=.a
 
 if HAVE_W32_SYSTEM
 GpgmeppConfig.cmake: GpgmeppConfig-w32.cmake.in
Index: lang/cpp/src/Makefile.in
--- lang/cpp/src/Makefile.in.orig	2023-10-27 14:38:51.000000000 +0200
+++ lang/cpp/src/Makefile.in	2023-11-02 09:32:44.278412000 +0100
@@ -572,8 +572,7 @@
 libgpgmepp_la_LDFLAGS = -no-undefined -version-info \
     @LIBGPGMEPP_LT_CURRENT@:@LIBGPGMEPP_LT_REVISION@:@LIBGPGMEPP_LT_AGE@
 
-@HAVE_MACOS_SYSTEM_FALSE@libsuffix = .so
-@HAVE_MACOS_SYSTEM_TRUE@libsuffix = .dylib
+libsuffix = .a
 CLEANFILES = GpgmeppConfig.cmake GpgmeppConfigVersion.cmake \
              gpgmepp_version.h GpgmeppConfig.cmake.in
 
