Commit 50e63d67 authored by Thomas De Schampheleire's avatar Thomas De Schampheleire Committed by Thomas Petazzoni
Browse files

argus: use pkg-config for libtirpc flags



Instead of hardcoding the flags needed for libtirpc, use pkg-config.
The linker flags are added to LIBS rather than LDFLAGS, which is more
correct in case of static builds.

Signed-off-by: default avatarThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 9daa5e3f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -13,10 +13,10 @@ ARGUS_LICENSE = GPLv2+
ARGUS_LICENSE_FILES = README

ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
ARGUS_DEPENDENCIES += libtirpc
ARGUS_DEPENDENCIES += libtirpc host-pkgconf
ARGUS_CONF_ENV += \
	CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/" \
	LDFLAGS="$(TARGET_LDFLAGS) -ltirpc"
	CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" \
	LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
endif

$(eval $(autotools-package))