--- src/Makefile.am.orig 2020-11-11 02:14:18.000000000 +1000 +++ src/Makefile.am 2021-12-02 23:01:39.357424000 +1000 @@ -152,6 +152,8 @@ libunwind_la_SOURCES_os_freebsd = os-freebsd.c +libunwind_la_SOURCES_os_bsdsunix = os-bsdsunix.c + libunwind_la_SOURCES_os_qnx = os-qnx.c libunwind_la_SOURCES_os_solaris = os-solaris.c @@ -527,6 +529,19 @@ libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_hpux_local) endif +if OS_BSDSUNIX + libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_bsdsunix) + libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_bsdsunix_local) + libunwind_la_SOURCES_x86_os = x86/Gos-bsdsunix.c + libunwind_x86_la_SOURCES_os = x86/getcontext-bsdsunix.S + libunwind_la_SOURCES_x86_os_local = x86/Los-bsdsunix.c + libunwind_la_SOURCES_x86_64_os = x86_64/Gos-bsdsunix.c + libunwind_la_SOURCES_x86_64_os_local = x86_64/Los-bsdsunix.c + libunwind_la_SOURCES_arm_os = arm/Gos-bsdsunix.c + libunwind_la_SOURCES_arm_os_local = arm/Los-bsdsunix.c + libunwind_coredump_la_SOURCES += coredump/_UCD_access_reg_bsdsunix.c +endif + if OS_FREEBSD libunwind_la_SOURCES_os = $(libunwind_la_SOURCES_os_freebsd) libunwind_la_SOURCES_os_local = $(libunwind_la_SOURCES_os_freebsd_local) @@ -746,6 +761,7 @@ $(libunwind_la_SOURCES_sh) \ $(libunwind_la_SOURCES_x86) \ $(libunwind_la_SOURCES_os_freebsd) \ + $(libunwind_la_SOURCES_os_bsdsunix) \ $(libunwind_la_SOURCES_os_linux) \ $(libunwind_la_SOURCES_os_hpux) \ $(libunwind_la_SOURCES_os_qnx) \