summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-04-24 11:16:45 +0200
committerAlfredo Tupone <tupone@gentoo.org>2023-04-24 11:16:45 +0200
commit547cde6897aabd5b93d974dc6529eaea1585daeb (patch)
treee713f43e9b73fde276b778c84d55da4b36df3c3c /dev-ada
parentsci-libs/caffe2: fix cudnn include path (diff)
downloadgentoo-547cde6897aabd5b93d974dc6529eaea1585daeb.tar.gz
gentoo-547cde6897aabd5b93d974dc6529eaea1585daeb.tar.bz2
gentoo-547cde6897aabd5b93d974dc6529eaea1585daeb.zip
dev-ada/gpr-unit-provider: respect ADAFLAGS
Closes: https://bugs.gentoo.org/902537 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r3.ebuild (renamed from dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild)25
1 files changed, 10 insertions, 15 deletions
diff --git a/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild b/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r3.ebuild
index 2e1af4e2ac0d..409b5d59236e 100644
--- a/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild
+++ b/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r3.ebuild
@@ -25,21 +25,16 @@ REQUIRED_USE="${ADA_REQUIRED_USE}
|| ( shared static-libs static-pic )"
src_compile() {
- if use static-libs; then
- emake PROCESSORS=$(makeopts_jobs) \
- GPRBUILD_OPTIONS=-v \
- build-static
- fi
- if use shared; then
- emake PROCESSORS=$(makeopts_jobs) \
- GPRBUILD_OPTIONS=-v \
- build-relocatable
- fi
- if use static-pic; then
- emake PROCESSORS=$(makeopts_jobs) \
- GPRBUILD_OPTIONS=-v \
- build-static-pic
- fi
+ build () {
+ gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \
+ -XGPR_UNIT_PROVIDER_BUILD=release -XXMLADA_BUILD=$1 \
+ -P gpr_unit_provider.gpr \
+ -largs ${LDFLAGS} \
+ -cargs ${ADAFLAGS} || die "gprbuild failed"
+ }
+ use static-libs && build static
+ use shared && build relocatable
+ use static-pic && build static-pic
}
src_install() {