Date: Fri, 24 Jun 2016 21:15:04 +0200 From: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= <elferdo@gmail.com> To: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com> Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: QA script error (libc++) Message-ID: <CAMwkeZxFsGq3sy%2B2Uk4rt6Dk_rMeEtrwGBmXwy54n_CKSpLx5g@mail.gmail.com> In-Reply-To: <CAGwOe2bSj25FQByre5W%2B91Q6Xtcz6eHVqEQPUB_izX%2BdipTnfg@mail.gmail.com> References: <CAGwOe2ZMHbf2uCV=T9cKEKF4F8XE8XBA4wUt7H4DXB9nCOMH%2BA@mail.gmail.com> <CAMwkeZyuurY2duUDQyoeS9ues0phj=%2BpoDNB=0jCt=FbQwtu%2Bw@mail.gmail.com> <CAGwOe2bSj25FQByre5W%2B91Q6Xtcz6eHVqEQPUB_izX%2BdipTnfg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El 24 jun. 2016 4:23 p. m., "Fernando Apestegu=C3=ADa" < fernando.apesteguia@gmail.com> escribi=C3=B3: > > On Fri, Jun 24, 2016 at 10:25 AM, Fernando Herrero Carr=C3=B3n > <elferdo@gmail.com> wrote: > > > > El 24 jun. 2016 8:16 a. m., "Fernando Apestegu=C3=ADa" > > <fernando.apesteguia@gmail.com> escribi=C3=B3: > >> > >> One of my ports is written in C++. It links agains libc++ that is in > >> base (/usr/src/contrib/libc++). The port still builds fine and works > >> but the QA scripts show an error complaining about the executable > >> being linked to libc++ without the library being listed as an actual > >> dependency and it suggests to add the following line to the Makefile: > >> > >> LIB_DEPENDS+=3Dlibc++.so:devel/libc++ > >> > >> Is this strictly necessary? Would something like this be acceptable?: > >> > >> .if !exists(/usr/lib/libc++.so) > >> ... > >> LIB_DEPENDS+=3Dlibc++.so:devel/libc++ > >> ... > >> .endif > >> > >> Note: the port does not compile on FreeBSD < 10.x > >> > >> Thanks in advance. > > > > Dear Fernando, > > > > I would say adding a dependency on libc++ from ports is not necessary. On a > > standard system you can pass the compiler an option like -stdlib=3Dlibc= ++ and > > it works. > > > > This library is usually linked against when compiling with c++11 or newer. > > Maybe adding the appropriate compiler option [1] would be a better choice? > > I forgot to mention I'm already using this: > > USES=3D compiler:gcc-c++11-lib > > But the QA script still complains. > I myself program in c++, have plenty of c++ ports installed and don't have devel/libc++ on my system. Could it be that a previous port does install devel/libc++ for you, and this one links against it by chance? Do you already have devel/libc++ installed when compiling this port?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMwkeZxFsGq3sy%2B2Uk4rt6Dk_rMeEtrwGBmXwy54n_CKSpLx5g>