From c4f81ca46c80ae48f366539da6b329aee964fe9a Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 5 Dec 2022 22:32:27 +0100 Subject: [PATCH] Include static libs to fix the bootstrap build For reasons I don't understand, without static libs present the ldc bootstrap sequence fails on EPEL 8 with an ldc segfault when compiling object files for the shared runtime. --- ldc.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ldc.spec b/ldc.spec index 7d962d8..1c3da24 100644 --- a/ldc.spec +++ b/ldc.spec @@ -7,6 +7,7 @@ # final compiler that gets installed in the rpm. %bcond_with bootstrap +%undefine _cmake_shared_libs %undefine _hardened_build %undefine _package_note_file @@ -148,9 +149,13 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/ %dir %{_prefix}/lib/ldc/%{_target_platform}/include %{_prefix}/lib/ldc/%{_target_platform}/include/d/ %{_libdir}/ldc_rt.dso.o +%{_libdir}/libdruntime-ldc-debug.a %{_libdir}/libdruntime-ldc-debug-shared.so +%{_libdir}/libdruntime-ldc.a %{_libdir}/libdruntime-ldc-shared.so +%{_libdir}/libphobos2-ldc-debug.a %{_libdir}/libphobos2-ldc-debug-shared.so +%{_libdir}/libphobos2-ldc.a %{_libdir}/libphobos2-ldc-shared.so %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions