mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
9daa5e3f55
commit
50e63d67ab
@@ -13,10 +13,10 @@ ARGUS_LICENSE = GPLv2+
|
|||||||
ARGUS_LICENSE_FILES = README
|
ARGUS_LICENSE_FILES = README
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||||
ARGUS_DEPENDENCIES += libtirpc
|
ARGUS_DEPENDENCIES += libtirpc host-pkgconf
|
||||||
ARGUS_CONF_ENV += \
|
ARGUS_CONF_ENV += \
|
||||||
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/" \
|
CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) -ltirpc"
|
LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user