mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 22:56:33 +00:00
busybox: use pkg-config for libtirpc flags
Instead of hardcoding the flags needed for libtirpc, use pkg-config. 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:
parent
2b7edd7756
commit
e66c64fd78
@ -19,11 +19,11 @@ BUSYBOX_LDFLAGS = \
|
|||||||
# Link against libtirpc if available so that we can leverage its RPC
|
# Link against libtirpc if available so that we can leverage its RPC
|
||||||
# support for NFS mounting with BusyBox
|
# support for NFS mounting with BusyBox
|
||||||
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||||
BUSYBOX_DEPENDENCIES += libtirpc
|
BUSYBOX_DEPENDENCIES += libtirpc host-pkgconf
|
||||||
BUSYBOX_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
BUSYBOX_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
|
||||||
# Don't use LDFLAGS for -ltirpc, because LDFLAGS is used for
|
# Don't use LDFLAGS for -ltirpc, because LDFLAGS is used for
|
||||||
# the non-final link of modules as well.
|
# the non-final link of modules as well.
|
||||||
BUSYBOX_CFLAGS_busybox += -ltirpc
|
BUSYBOX_CFLAGS_busybox += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUSYBOX_BUILD_CONFIG = $(BUSYBOX_DIR)/.config
|
BUSYBOX_BUILD_CONFIG = $(BUSYBOX_DIR)/.config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user