--- src/Makefile.am.orig 2020-03-23 12:41:03 UTC +++ src/Makefile.am @@ -139,6 +139,8 @@ libunwind_la_SOURCES_os_hpux = os-hpux.c libunwind_la_SOURCES_os_freebsd = os-freebsd.c +libunwind_la_SOURCES_os_bsdsunix = os-bsdsunix.c + libunwind_dwarf_common_la_SOURCES = dwarf/global.c libunwind_dwarf_local_la_SOURCES = \ @@ -418,6 +420,17 @@ if OS_FREEBSD libunwind_coredump_la_SOURCES += coredump/_UCD_access_reg_freebsd.c 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_coredump_la_SOURCES += coredump/_UCD_access_reg_bsdsunix.c +endif + if ARCH_ARM lib_LTLIBRARIES += libunwind-arm.la libunwind_la_SOURCES = $(libunwind_la_SOURCES_arm) @@ -574,6 +587,7 @@ EXTRA_DIST = $(libunwind_la_SOURCES_arm) $(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_common) \