Skip to content

Commit

Permalink
net-wireless/dump1090: respect $PKG_CONFIG settings
Browse files Browse the repository at this point in the history
Hardcoding `pkg-config` breaks cross-compiling.
  • Loading branch information
iancoolidge authored and vapier committed Jan 31, 2017
1 parent 2d9cf77 commit 612d9d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions net-wireless/dump1090/dump1090-0.0_p20140919.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions net-wireless/dump1090/dump1090-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 612d9d5

Please sign in to comment.