diff --git a/platform/dummy/Make.defs b/platform/dummy/Make.defs
index 42a1dbe5f..2aceb71bc 100644
--- a/platform/dummy/Make.defs
+++ b/platform/dummy/Make.defs
@@ -32,3 +32,8 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 ############################################################################
+
+# Add dummy.c to ensure that we have at least one object.
+# On some platforms like macOS, we can't create an empty archive.
+
+CSRCS += dummy.c
diff --git a/platform/dummy/dummy.c b/platform/dummy/dummy.c
new file mode 100644
index 000000000..e69de29bb