Enable bootstrap again

linker segfaulted trying to link libphobos

BUILDSTDERR: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
BUILDSTDERR: /usr/bin/ld: core/.libs/atomic.o: relocation R_RISCV_HI20 against `gdc.dso_initialized' can not be used when making a shared object; recompile with -fPIC
(for multiple files from libphobos)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2019-01-24 12:07:18 +01:00
parent d28e028a04
commit a24fb4f7f1
Signed by: davidlt
GPG Key ID: 7108702C938B13C1
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
Release: %{gcc_release}.davidlt.3%{?dist}
Release: %{gcc_release}.davidlt.4%{?dist}
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
@ -1096,12 +1096,12 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
../configure --disable-bootstrap \
../configure --enable-bootstrap \
--enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto \
$CONFIGURE_OPTS
%ifarch sparc sparcv9 sparc64 riscv64
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS"
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap
%else
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" profiledbootstrap
%endif