summaryrefslogtreecommitdiff
path: root/dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-04-29 16:58:01 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-04-29 16:58:01 +0000
commit92f1a710ba9105e85760bcf9467d14e088629498 (patch)
tree7aad7121a2d30bc8d3df528a17df28c1025474de /dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild
parent0e90db47fc8e412ee1f5f946efb27538c899368b (diff)
downloadsrcux-92f1a710ba9105e85760bcf9467d14e088629498.tar.gz
srcux-92f1a710ba9105e85760bcf9467d14e088629498.tar.xz
srcux-92f1a710ba9105e85760bcf9467d14e088629498.zip
Adding metadata
Diffstat (limited to 'dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild')
-rw-r--r--dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild
index ce80ea9eddd0..beb95edfed77 100644
--- a/dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild
+++ b/dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9,10} )
-inherit cmake python-any-r1 toolchain-funcs
+inherit cmake flag-o-matic python-any-r1 toolchain-funcs
# yes, it needs SOURCE, not just installed one
GTEST_COMMIT="aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e"
@@ -61,6 +61,7 @@ src_prepare() {
src_configure() {
if use arm || use arm64; then
+ # bug #778926
if [[ $($(tc-getCXX) ${CXXFLAGS} -E -P - <<<$'#if defined(__ARM_FEATURE_CRYPTO)\nHAVE_ARM_FEATURE_CRYPTO\n#endif') != *HAVE_ARM_FEATURE_CRYPTO* ]]; then
append-cxxflags -DABSL_ARCH_ARM_NO_CRYPTO
fi
@@ -69,6 +70,7 @@ src_configure() {
local mycmakeargs=(
-DABSL_ENABLE_INSTALL=TRUE
-DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}"
+ -DBUILD_SHARED_LIBS=TRUE
$(usex cxx17 -DCMAKE_CXX_STANDARD=17 '') # it has to be a useflag for some consumers
$(usex test -DBUILD_TESTING=ON '') #intentional usex
)