Skip to content

Commit

Permalink
Merge branch 'jb49681' into 'master'
Browse files Browse the repository at this point in the history
aarch64 fixes for gcc

See merge request mer-core/gcc!19
  • Loading branch information
Matti Kosola committed Jun 26, 2020
2 parents 95dcc9b + e6a9760 commit a9dea3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions gcc.changes
@@ -1,3 +1,9 @@
* Fri Jun 26 2020 Matti Kosola <matti.kosola@jolla.com> - 8.3.0-4
- Aarch64 path fix. Contributes to JB#49681
- Enable lsan for aarch64. Contributes to JB#49681
- Fix mpc-devel package name. Contributes to JB#49681
- Force libdir for aarch64. Contributes to JB#49681

* Tue Jan 28 2020 Niels Breet <niels.breet@jolla.com> - 8.3.0-3
- Remove stray .la files in cross gcc. Contributes JB#48690

Expand Down
13 changes: 9 additions & 4 deletions gcc.spec
Expand Up @@ -10,6 +10,11 @@ Name: gcc
%endif
%endif

%ifarch aarch64
%define _libdir /usr/lib64
%define _lib lib64
%endif

# crossbuild / accelerator section
# \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
%define crossbuild 0
Expand Down Expand Up @@ -96,7 +101,7 @@ ExclusiveArch: %ix86 x86_64
%endif

%global gcc_version 8.3.0
%global gcc_release 3
%global gcc_release 4
%global _unpackaged_files_terminate_build 0
%global _performance_build 1
%global build_ada 0
Expand Down Expand Up @@ -135,7 +140,7 @@ ExclusiveArch: %ix86 x86_64
%else
%global build_libasan 0
%endif
%ifarch x86_64 ppc64 ppc64le
%ifarch x86_64 ppc64 ppc64le aarch64
%global build_liblsan 1
%else
%global build_liblsan 0
Expand Down Expand Up @@ -486,7 +491,7 @@ This is one set of libraries which support 64bit multilib on top of
Summary: Support for compiling GCC plugins
Group: Development/Languages
Requires: gcc = %{version}-%{release}
Requires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1, libmpc-devel >= 0.8.1
Requires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1, mpc-devel >= 0.8.1

%description plugin-devel
This package contains header files and other support files
Expand Down Expand Up @@ -963,7 +968,7 @@ mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++*gdb.py* \
%{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/

pushd $FULLPATH
if [ "%{_lib}" = "lib" ] || [ "%{_lib}" = "lib64" ]; then
if [ "%{_lib}" = "lib" ]; then
%if %{build_objc}
ln -sf ../../../libobjc.so.4 libobjc.so
%endif
Expand Down

0 comments on commit a9dea3d

Please sign in to comment.