--- a/net-im/prosody/prosody-0.7.0.ebuild +++ a/net-im/prosody/prosody-0.7.0.ebuild @@ -43,11 +43,15 @@ src_prepare() { } src_configure() { + # the configure script is handcrafted (and yells at unknown options) + # hence do not use 'econf' ./configure --prefix="/usr" \ --sysconfdir="${JABBER_ETC}" \ --datadir="${JABBER_SPOOL}" \ --with-lua-lib=/usr/$(get_libdir)/lua \ --c-compiler="$(tc-getCC)" --linker="$(tc-getCC)" \ + --cflags="${CFLAGS} -Wall -fPIC" \ + --ldflags="${LDFLAGS} -shared" \ --require-config || die "configure failed" }