Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Santos <casantos@datacom.ind.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] mtools: do not link to libbsd
Date: Tue, 28 Nov 2017 10:36:02 -0200 (BRST)	[thread overview]
Message-ID: <162733373.2372605.1511872562472.JavaMail.zimbra@datacom.ind.br> (raw)
In-Reply-To: <20171128120327.6xkily3oshzluinc@tarshish>

> From: "Baruch Siach" <baruch@tkos.co.il>
> To: "Carlos Santos" <casantos@datacom.ind.br>
> Cc: buildroot at buildroot.org
> Sent: Tuesday, November 28, 2017 10:03:27 AM
> Subject: Re: [Buildroot] [PATCH] mtools: do not link to libbsd

> Hi Carlos,
> 
[...]
>> diff --git a/package/mtools/mtools.mk b/package/mtools/mtools.mk
>> index 5db548fad9..1a6218831e 100644
>> --- a/package/mtools/mtools.mk
>> +++ b/package/mtools/mtools.mk
>> @@ -13,9 +13,13 @@ MTOOLS_CONF_OPTS = --without-x
>>  # info documentation not needed
>>  MTOOLS_CONF_ENV = \
>>  	ac_cv_func_setpgrp_void=yes \
>> +	ac_cv_lib_bsd_gethostbyname=no \
>> +	ac_cv_lib_bsd_main=no \
> 
> ... but why no add an optional dependency on libbds for the target mtools
> package? In case we build target libbsd anyway, having mtools use libbsd would
> presumably reduce the binary size of mtools somewhat, isn't it?

From the configure script:

    # The functions gethostbyname, getservbyname, and inet_addr are
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.

On Buildroot gethostbyname is provided by glibc/uClibc/musl.

-- 
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent 
success of having your words and actions judged by your reputation, 
rather than the other way about.? ? Christopher Hitchens

  reply	other threads:[~2017-11-28 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-28 10:48 [Buildroot] [PATCH] mtools: do not link to libbsd Carlos Santos
2017-11-28 12:03 ` Baruch Siach
2017-11-28 12:36   ` Carlos Santos [this message]
2017-11-28 12:52     ` Baruch Siach

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=162733373.2372605.1511872562472.JavaMail.zimbra@datacom.ind.br \
    --to=casantos@datacom.ind.br \
    --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