Skip to content

Commit

Permalink
dev-lang/gprolog: fixed Prolog registers can only be used with GCC
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Keri Harris <[email protected]>
  • Loading branch information
keriharris committed Jul 17, 2020
1 parent eb97bcb commit 017204a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dev-lang/gprolog/gprolog-1.4.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ src_configure() {
append-ldflags -no-pie
fi

if tc-is-gcc && ! use x86; then
gprolog_use_regs=yes
else
gprolog_use_regs=no
fi

cd "${S}"/src
econf \
CFLAGS_MACHINE="${CFLAGS_MACHINE}" \
--with-c-flags="${CFLAGS}" \
--with-install-dir="${EPREFIX}"/usr/$(get_libdir)/${P} \
--with-links-dir="${EPREFIX}"/usr/bin \
$(use_enable !x86 regs) \
--enable-regs=$gprolog_use_regs \
$(use_with doc doc-dir "${EPREFIX}"/usr/share/doc/${PF}) \
$(use_with doc html-dir "${EPREFIX}"/usr/share/doc/${PF}/html) \
$(use_with examples examples-dir "${EPREFIX}"/usr/share/doc/${PF}/examples)
Expand Down

0 comments on commit 017204a

Please sign in to comment.