From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Santos Date: Tue, 28 Nov 2017 10:36:02 -0200 (BRST) Subject: [Buildroot] [PATCH] mtools: do not link to libbsd In-Reply-To: <20171128120327.6xkily3oshzluinc@tarshish> References: <20171128104817.15073-1-casantos@datacom.ind.br> <20171128120327.6xkily3oshzluinc@tarshish> Message-ID: <162733373.2372605.1511872562472.JavaMail.zimbra@datacom.ind.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > From: "Baruch Siach" > To: "Carlos Santos" > 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