summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-07-09 10:16:54 +0200
committerMichał Górny <mgorny@gentoo.org>2017-07-09 23:33:55 +0200
commit62394fcca76f4c6b433884a3d48a84ae7b775600 (patch)
tree73f1cced66aef7721743104657456588818cf84e /sys-libs
parentapp-vim/ferret: version bump. (diff)
downloadgentoo-62394fcca76f4c6b433884a3d48a84ae7b775600.tar.gz
gentoo-62394fcca76f4c6b433884a3d48a84ae7b775600.tar.bz2
gentoo-62394fcca76f4c6b433884a3d48a84ae7b775600.zip
sys-libs/compiler-rt: Simplify -- use common nolib flag var
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild10
-rw-r--r--sys-libs/compiler-rt/compiler-rt-9999.ebuild10
2 files changed, 10 insertions, 10 deletions
diff --git a/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild b/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild
index 00141f900ff2..98d9f66212bc 100644
--- a/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild
@@ -48,17 +48,17 @@ src_configure() {
# pre-set since we need to pass it to cmake
BUILD_DIR=${WORKDIR}/${P}_build
+ local nolib_flags=( -nodefaultlibs -lc )
if use clang; then
local -x CC=${CHOST}-clang
local -x CXX=${CHOST}-clang++
# ensure we can use clang before installing compiler-rt
- local -x LDFLAGS="${LDFLAGS} -nodefaultlibs -lc"
+ local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
strip-unsupported-flags
elif ! test_compiler; then
- local extra_flags=( -nodefaultlibs -lc )
- if test_compiler "${extra_flags[@]}"; then
- local -x LDFLAGS="${LDFLAGS} ${extra_flags[*]}"
- ewarn "${CC} seems to lack runtime, trying with ${extra_flags[*]}"
+ if test_compiler "${nolib_flags[@]}"; then
+ local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
+ ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
fi
fi
diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9999.ebuild
index 4758eab553af..ffd1e9eddb3f 100644
--- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild
@@ -49,17 +49,17 @@ src_configure() {
# pre-set since we need to pass it to cmake
BUILD_DIR=${WORKDIR}/${P}_build
+ local nolib_flags=( -nodefaultlibs -lc )
if use clang; then
local -x CC=${CHOST}-clang
local -x CXX=${CHOST}-clang++
# ensure we can use clang before installing compiler-rt
- local -x LDFLAGS="${LDFLAGS} -nodefaultlibs -lc"
+ local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
strip-unsupported-flags
elif ! test_compiler; then
- local extra_flags=( -nodefaultlibs -lc )
- if test_compiler "${extra_flags[@]}"; then
- local -x LDFLAGS="${LDFLAGS} ${extra_flags[*]}"
- ewarn "${CC} seems to lack runtime, trying with ${extra_flags[*]}"
+ if test_compiler "${nolib_flags[@]}"; then
+ local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
+ ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
fi
fi