Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume W. Bres <guillaume.bressaix@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/libnids: disable libglib2 only if not available
Date: Tue, 23 Jun 2020 20:35:49 +0200	[thread overview]
Message-ID: <20200623183549.12105-1-guillaume.bressaix@gmail.com> (raw)

Take advantage of a possibly existing BR2_PACKAGE_LIBGLIB2

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
 package/libnids/libnids.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/libnids/libnids.mk b/package/libnids/libnids.mk
index ee7c71ee88..83719a712f 100644
--- a/package/libnids/libnids.mk
+++ b/package/libnids/libnids.mk
@@ -12,8 +12,13 @@ LIBNIDS_INSTALL_STAGING = YES
 LIBNIDS_DEPENDENCIES = host-pkgconf libpcap
 LIBNIDS_AUTORECONF = YES
 LIBNIDS_CONF_OPTS = \
-	--disable-libglib \
 	--disable-libnet
+
+# disable libglib2 if not available
+ifeq ($(BR2_PACKAGE_LIBGLIB2),n)
+LIBNIDS_CONF_OPTS += --disable-libglib
+endif
+
 # hand-written Makefile.in, not using automake, needs a custom
 # variable for the installation path.
 LIBNIDS_INSTALL_STAGING_OPTS = install_prefix=$(STAGING_DIR) install
-- 
2.20.1

             reply	other threads:[~2020-06-23 18:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23 18:35 Guillaume W. Bres [this message]
2020-06-23 19:36 ` [Buildroot] [PATCH 1/1] package/libnids: disable libglib2 only if not available Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200623183549.12105-1-guillaume.bressaix@gmail.com \
    --to=guillaume.bressaix@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox