mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sys-devel/smatch: avoid hardcoded pkg-config invocation
It's not a big deal here as we disable most deps, but it avoids "command not found" errors when cross-compiling, and confusing checkers looking for bad pkg-config invocation. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Mike Frysinger
parent
628ed83408
commit
41189fa2e1
@@ -24,6 +24,7 @@ IUSE=""
|
||||
|
||||
RDEPEND="dev-db/sqlite"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${P}-7a4fdad
|
||||
|
||||
@@ -32,6 +33,7 @@ src_prepare() {
|
||||
|
||||
sed -i \
|
||||
-e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
|
||||
-e 's:pkg-config:$(PKG_CONFIG):' \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
@@ -43,6 +45,7 @@ _emake() {
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
LD='$(CC)' \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
HAVE_GTK2=no \
|
||||
HAVE_LLVM=no \
|
||||
HAVE_LIBXML=no \
|
||||
|
||||
@@ -23,12 +23,14 @@ IUSE=""
|
||||
|
||||
RDEPEND="dev-db/sqlite"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions:${CPPFLAGS}:}' \
|
||||
-e 's:pkg-config:$(PKG_CONFIG):' \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
@@ -40,6 +42,7 @@ _emake() {
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
LD='$(CC)' \
|
||||
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
|
||||
HAVE_GTK2=no \
|
||||
HAVE_LLVM=no \
|
||||
HAVE_LIBXML=no \
|
||||
|
||||
Reference in New Issue
Block a user