Score:0

Writing Gentoo ebuilds: how to correctly add libraries using flag-o-matic eclass

cn flag

I'm trying to write an ebuild (I'm very new to writing ebuilds) and I need to add the library -ltinfo to link against.

My ebuild looks like:

EAPI=8
inherit flag-o-matic
...
src_compile() {
    append-libs -ltinfo
    default
}

Everything else is pretty much default, but in the emerge log I don't see -ltinfo included as a library and it fails to compile.

jbean223 avatar
cn flag
I was able to work around this issue by patching the Makefile, but I would still like to be able to do this from within the ebuild.
Score:0
cn flag

The Makefile used an environment variable LOADLIBS to specify libraries. The following src compile worked without flag-o-matic.

src_compile() {
    emake LOADLIBS="..."
}
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.