commit:     8e283ddd7e7cfd33203278872556a5b7db34eaa1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 29 08:47:41 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 29 08:47:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e283ddd

sys-libs/compiler-rt: Fix stripping -nodefaultlibs

Closes: https://bugs.gentoo.org/706266
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild | 2 +-
 sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild | 2 +-
 sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild       | 2 +-
 sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild       | 2 +-
 sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild 
b/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild
index b5eea1980e7..fb90bbaab7c 100644
--- a/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild
@@ -62,9 +62,9 @@ src_configure() {
        if use clang; then
                local -x CC=${CHOST}-clang
                local -x CXX=${CHOST}-clang++
+               strip-unsupported-flags
                # ensure we can use clang before installing compiler-rt
                local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
-               strip-unsupported-flags
        elif ! test_compiler; then
                if test_compiler "${nolib_flags[@]}"; then
                        local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"

diff --git a/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild 
b/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild
index b5eea1980e7..fb90bbaab7c 100644
--- a/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild
@@ -62,9 +62,9 @@ src_configure() {
        if use clang; then
                local -x CC=${CHOST}-clang
                local -x CXX=${CHOST}-clang++
+               strip-unsupported-flags
                # ensure we can use clang before installing compiler-rt
                local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
-               strip-unsupported-flags
        elif ! test_compiler; then
                if test_compiler "${nolib_flags[@]}"; then
                        local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"

diff --git a/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild 
b/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild
index 8339d3420ba..1962c02d2f2 100644
--- a/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild
@@ -66,9 +66,9 @@ src_configure() {
        if use clang; then
                local -x CC=${CHOST}-clang
                local -x CXX=${CHOST}-clang++
+               strip-unsupported-flags
                # ensure we can use clang before installing compiler-rt
                local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
-               strip-unsupported-flags
        elif ! test_compiler; then
                if test_compiler "${nolib_flags[@]}"; then
                        local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"

diff --git a/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild 
b/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild
index 5049bf3761b..403e394f744 100644
--- a/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild
@@ -67,9 +67,9 @@ src_configure() {
        if use clang; then
                local -x CC=${CHOST}-clang
                local -x CXX=${CHOST}-clang++
+               strip-unsupported-flags
                # ensure we can use clang before installing compiler-rt
                local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
-               strip-unsupported-flags
        elif ! test_compiler; then
                if test_compiler "${nolib_flags[@]}"; then
                        local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"

diff --git a/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild 
b/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild
index af2de6ee54e..f5ce47c037e 100644
--- a/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild
@@ -62,9 +62,9 @@ src_configure() {
        if use clang; then
                local -x CC=${CHOST}-clang
                local -x CXX=${CHOST}-clang++
+               strip-unsupported-flags
                # ensure we can use clang before installing compiler-rt
                local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
-               strip-unsupported-flags
        elif ! test_compiler; then
                if test_compiler "${nolib_flags[@]}"; then
                        local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"

Reply via email to