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