- Set SUSE_ASNEEDED to zero during %install so libasan keeps its

NEEDED entry for libstdc++.so.  [GCC#84428]

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc7?expand=0&rev=129
This commit is contained in:
Richard Biener 2018-04-09 14:01:29 +00:00 committed by Git OBS Bridge
parent 698db85647
commit a02759cc2a
26 changed files with 163 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -1375,6 +1375,9 @@ mkdir ../testresults
%endif
%install
# Make sure libtool re-linking libasan at install time doesn't drop the
# libstdc++ reference to make asan of C++ modules in python work
export SUSE_ASNEEDED=0
export NO_BRP_CHECK_BYTECODE_VERSION=true
cd obj-%{GCCDIST}
# GCC-TESTSUITE-DELETE-BEGIN
@ -1383,6 +1386,14 @@ export _POSIX2_VERSION=199209
export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
make install DESTDIR=$RPM_BUILD_ROOT
# verify libasan really ended up with libstdc++ as NEEDED.
%ifarch %asan_arch
readelf -d $RPM_BUILD_ROOT%{versmainlibdir}/libasan.so.%{libasan_sover}* | grep 'NEEDED.*libstdc++' || exit 1
%if %{biarch}
readelf -d $RPM_BUILD_ROOT%{versmainlibdirbi}/libasan.so.%{libasan_sover}* | grep 'NEEDED.*libstdc++' || exit 1
%endif
%endif
# Remove some useless .la files
for lib in libobjc libgfortran libquadmath libcaf_single \
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -759,6 +759,9 @@ mkdir ../testresults
%endif
%install
# Make sure libtool re-linking libasan at install time doesn't drop the
# libstdc++ reference to make asan of C++ modules in python work
export SUSE_ASNEEDED=0
export NO_BRP_CHECK_BYTECODE_VERSION=true
cd obj-%{GCCDIST}
%if 0%{?run_tests:1}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 9 13:51:55 UTC 2018 - rguenther@suse.com
- Set SUSE_ASNEEDED to zero during %install so libasan keeps its
NEEDED entry for libstdc++.so. [GCC#84428]
-------------------------------------------------------------------
Fri Apr 6 09:05:43 UTC 2018 - rguenther@suse.com

View File

@ -2063,6 +2063,9 @@ mkdir ../testresults
%endif
%install
# Make sure libtool re-linking libasan at install time doesn't drop the
# libstdc++ reference to make asan of C++ modules in python work
export SUSE_ASNEEDED=0
export NO_BRP_CHECK_BYTECODE_VERSION=true
cd obj-%{GCCDIST}
# Work around tail/head -1 changes
@ -2070,6 +2073,14 @@ export _POSIX2_VERSION=199209
export LIBRARY_PATH=$RPM_BUILD_ROOT%{libsubdir}:$RPM_BUILD_ROOT%{mainlibdirbi}
make install DESTDIR=$RPM_BUILD_ROOT
# verify libasan really ended up with libstdc++ as NEEDED.
%ifarch %asan_arch
readelf -d $RPM_BUILD_ROOT%{versmainlibdir}/libasan.so.%{libasan_sover}* | grep 'NEEDED.*libstdc++' || exit 1
%if %{biarch}
readelf -d $RPM_BUILD_ROOT%{versmainlibdirbi}/libasan.so.%{libasan_sover}* | grep 'NEEDED.*libstdc++' || exit 1
%endif
%endif
# Remove some useless .la files
for lib in libobjc libgfortran libquadmath libcaf_single \
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \