mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ada/gnatdoc: respect LDFLAGS
Closes: https://bugs.gentoo.org/945091 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -39,13 +39,14 @@ src_compile() {
|
||||
build() {
|
||||
gprbuild -v -j$(makeopts_jobs) -p -P gnat/libgnatdoc.gpr \
|
||||
-XLIBRARY_TYPE=$1 -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} \
|
||||
|| die
|
||||
-largs ${LDFLAGS} || die
|
||||
}
|
||||
build relocatable
|
||||
use static-libs && build static
|
||||
use static-pic && build static-pic
|
||||
gprbuild -v -j$(makeopts_jobs) -p -P gnat/gnatdoc.gpr \
|
||||
-XLIBRARY_TYPE=relocatable || die
|
||||
-XLIBRARY_TYPE=relocatable -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} \
|
||||
-largs ${LDFLAGS} || die
|
||||
if use doc; then
|
||||
emake -C documentation/users_guide html
|
||||
fi
|
||||
Reference in New Issue
Block a user