All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags
@ 2015-07-26 18:45 Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 2/6] conntrack-tools: " Thomas De Schampheleire
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2015-07-26 18:45 UTC (permalink / raw)
  To: buildroot

From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

Instead of hardcoding the flags needed for libtirpc, use pkg-config.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
 package/rpcbind/rpcbind.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/rpcbind/rpcbind.mk b/package/rpcbind/rpcbind.mk
index d879de1..1e28af9 100644
--- a/package/rpcbind/rpcbind.mk
+++ b/package/rpcbind/rpcbind.mk
@@ -11,7 +11,7 @@ RPCBIND_LICENSE = BSD-3c
 RPCBIND_LICENSE_FILES = COPYING
 
 RPCBIND_CONF_ENV += \
-	CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/"
+	CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
 RPCBIND_DEPENDENCIES += libtirpc host-pkgconf
 RPCBIND_CONF_OPTS += --with-rpcuser=root
 RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=no
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 2/6] conntrack-tools: use pkg-config for libtirpc flags
  2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
@ 2015-07-26 18:45 ` Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 3/6] busybox: " Thomas De Schampheleire
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2015-07-26 18:45 UTC (permalink / raw)
  To: buildroot

From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

Instead of hardcoding the flags needed for libtirpc, use pkg-config.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
 package/conntrack-tools/conntrack-tools.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/conntrack-tools/conntrack-tools.mk b/package/conntrack-tools/conntrack-tools.mk
index c01501a..983f954 100644
--- a/package/conntrack-tools/conntrack-tools.mk
+++ b/package/conntrack-tools/conntrack-tools.mk
@@ -15,8 +15,8 @@ CONNTRACK_TOOLS_LICENSE_FILES = COPYING
 
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
 CONNTRACK_TOOLS_CONF_ENV += \
-	CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/"
-CONNTRACK_TOOLS_DEPENDENCIES += libtirpc
+	CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
+CONNTRACK_TOOLS_DEPENDENCIES += libtirpc host-pkgconf
 endif
 
 $(eval $(autotools-package))
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 3/6] busybox: use pkg-config for libtirpc flags
  2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 2/6] conntrack-tools: " Thomas De Schampheleire
@ 2015-07-26 18:45 ` Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 4/6] quota: " Thomas De Schampheleire
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2015-07-26 18:45 UTC (permalink / raw)
  To: buildroot

From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

Instead of hardcoding the flags needed for libtirpc, use pkg-config.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
 package/busybox/busybox.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 65ce7ef..6e302f4 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -19,11 +19,11 @@ BUSYBOX_LDFLAGS = \
 # Link against libtirpc if available so that we can leverage its RPC
 # support for NFS mounting with BusyBox
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-BUSYBOX_DEPENDENCIES += libtirpc
-BUSYBOX_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
+BUSYBOX_DEPENDENCIES += libtirpc host-pkgconf
+BUSYBOX_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
 # Don't use LDFLAGS for -ltirpc, because LDFLAGS is used for
 # the non-final link of modules as well.
-BUSYBOX_CFLAGS_busybox += -ltirpc
+BUSYBOX_CFLAGS_busybox += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 endif
 
 BUSYBOX_BUILD_CONFIG = $(BUSYBOX_DIR)/.config
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 4/6] quota: use pkg-config for libtirpc flags
  2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 2/6] conntrack-tools: " Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 3/6] busybox: " Thomas De Schampheleire
@ 2015-07-26 18:45 ` Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 5/6] xinetd: " Thomas De Schampheleire
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2015-07-26 18:45 UTC (permalink / raw)
  To: buildroot

From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

Instead of hardcoding the flags needed for libtirpc, use pkg-config.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
 package/quota/quota.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/quota/quota.mk b/package/quota/quota.mk
index 332f42e..5e5e637 100644
--- a/package/quota/quota.mk
+++ b/package/quota/quota.mk
@@ -19,9 +19,9 @@ QUOTA_LIBS += -lintl
 endif
 
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-QUOTA_DEPENDENCIES += libtirpc
-QUOTA_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
-QUOTA_LIBS += -ltirpc
+QUOTA_DEPENDENCIES += libtirpc host-pkgconf
+QUOTA_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
+QUOTA_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 endif
 
 QUOTA_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS="$(QUOTA_LIBS)"
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 5/6] xinetd: use pkg-config for libtirpc flags
  2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
                   ` (2 preceding siblings ...)
  2015-07-26 18:45 ` [Buildroot] [PATCH 4/6] quota: " Thomas De Schampheleire
@ 2015-07-26 18:45 ` Thomas De Schampheleire
  2015-07-26 18:45 ` [Buildroot] [PATCH 6/6] argus: " Thomas De Schampheleire
  2015-07-26 19:54 ` [Buildroot] [PATCH 1/6] rpcbind: " Thomas Petazzoni
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2015-07-26 18:45 UTC (permalink / raw)
  To: buildroot

From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

Instead of hardcoding the flags needed for libtirpc, use pkg-config.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
---
 package/xinetd/xinetd.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/xinetd/xinetd.mk b/package/xinetd/xinetd.mk
index 92d0d53..9818512 100644
--- a/package/xinetd/xinetd.mk
+++ b/package/xinetd/xinetd.mk
@@ -17,9 +17,9 @@ XINETD_CFLAGS = $(TARGET_CFLAGS)
 #     flags (so this case 2 is implicit and not visible below)
 #  3. We don't have RPC support, pass -DNO_RPC to disable it
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-XINETD_DEPENDENCIES += libtirpc
-XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
-XINETD_LIBS += -ltirpc
+XINETD_DEPENDENCIES += libtirpc host-pkgconf
+XINETD_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
+XINETD_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
 XINETD_CFLAGS += -DNO_RPC
 endif
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 6/6] argus: use pkg-config for libtirpc flags
  2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
                   ` (3 preceding siblings ...)
  2015-07-26 18:45 ` [Buildroot] [PATCH 5/6] xinetd: " Thomas De Schampheleire
@ 2015-07-26 18:45 ` Thomas De Schampheleire
  2015-07-26 19:54 ` [Buildroot] [PATCH 1/6] rpcbind: " Thomas Petazzoni
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas De Schampheleire @ 2015-07-26 18:45 UTC (permalink / raw)
  To: buildroot

From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>

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>
---
 package/argus/argus.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/argus/argus.mk b/package/argus/argus.mk
index c39b664..bd1c559 100644
--- a/package/argus/argus.mk
+++ b/package/argus/argus.mk
@@ -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))
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags
  2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
                   ` (4 preceding siblings ...)
  2015-07-26 18:45 ` [Buildroot] [PATCH 6/6] argus: " Thomas De Schampheleire
@ 2015-07-26 19:54 ` Thomas Petazzoni
  5 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2015-07-26 19:54 UTC (permalink / raw)
  To: buildroot

Dear Thomas De Schampheleire,

On Sun, 26 Jul 2015 20:45:13 +0200, Thomas De Schampheleire wrote:
> From: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
> 
> Instead of hardcoding the flags needed for libtirpc, use pkg-config.
> 
> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
> ---
>  package/rpcbind/rpcbind.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

All 6 patches applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-26 19:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-26 18:45 [Buildroot] [PATCH 1/6] rpcbind: use pkg-config for libtirpc flags Thomas De Schampheleire
2015-07-26 18:45 ` [Buildroot] [PATCH 2/6] conntrack-tools: " Thomas De Schampheleire
2015-07-26 18:45 ` [Buildroot] [PATCH 3/6] busybox: " Thomas De Schampheleire
2015-07-26 18:45 ` [Buildroot] [PATCH 4/6] quota: " Thomas De Schampheleire
2015-07-26 18:45 ` [Buildroot] [PATCH 5/6] xinetd: " Thomas De Schampheleire
2015-07-26 18:45 ` [Buildroot] [PATCH 6/6] argus: " Thomas De Schampheleire
2015-07-26 19:54 ` [Buildroot] [PATCH 1/6] rpcbind: " Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.