net-wireless/dump1090: respect $PKG_CONFIG settings

Hardcoding `pkg-config` breaks cross-compiling.
This commit is contained in:
Ian Coolidge
2017-01-30 23:54:52 -10:00
committed by Mike Frysinger
parent 2d9cf77211
commit 612d9d554e
2 changed files with 4 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ src_prepare() {
src_compile() {
emake CC="$(tc-getCC)" \
CFLAGS="$(pkg-config --cflags librtlsdr)" \
LIBS="${LDFLAGS} $(pkg-config --libs librtlsdr) -lm -lpthread" \
CFLAGS="$($(tc-getPKG_CONFIG) --cflags librtlsdr)" \
LIBS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs librtlsdr) -lm -lpthread" \
all
}

View File

@@ -32,8 +32,8 @@ src_prepare() {
src_compile() {
emake CC="$(tc-getCC)" \
CFLAGS="$(pkg-config --cflags librtlsdr)" \
LIBS="${LDFLAGS} $(pkg-config --libs librtlsdr) -lm -lpthread" \
CFLAGS="$($(tc-getPKG_CONFIG) --cflags librtlsdr)" \
LIBS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs librtlsdr) -lm -lpthread" \
all
}