--- erts/emulator/sys/unix/erl_unix_sys_ddll.c.orig	2020-09-22 14:11:38.000000000 -0500
+++ erts/emulator/sys/unix/erl_unix_sys_ddll.c	2020-11-17 13:09:11.000000000 -0600
@@ -50,6 +50,13 @@
 static int num_errcodes = 0;
 static int num_errcodes_allocated = 0;

+extern void __CFInitialize(void);
+static void call_cf_initialize(void) __attribute__ ((constructor));
+static void call_cf_initialize()
+{
+    __CFInitialize();
+}
+
 #define my_strdup(WHAT) my_strdup_in(ERTS_ALC_T_DDLL_ERRCODES, WHAT);
 
 static char *my_strdup_in(ErtsAlcType_t type, char *what)
