From owner-freebsd-ports@freebsd.org Fri Jun 24 14:23:11 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BB59B7370D for ; Fri, 24 Jun 2016 14:23:11 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 567F6139A for ; Fri, 24 Jun 2016 14:23:11 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-qk0-x229.google.com with SMTP id c73so147714072qkg.2 for ; Fri, 24 Jun 2016 07:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pLq4TvUA0vgV2AysqiD04qtXsJs5QAXjyHW3K3lL3Gg=; b=gvegU9zexqiDruGRB9VZLIdcfUFHFp1ZNQLXUFbudpDdjtSWEACdTpsCBelDhJvsGg WJzNn9FQbmqaq4dtm57uiEP22kFHala0iyO2tIuOW3AL/q4BVvNDzSr9O98ZVFlCwLr1 COhAKmmCSZiAdEm5tvS9H/sFvRw+k3aLnqh4F62a1be9Fzn7hrqW0j2w4nPt8IoEgTnN bYgeULzDA0X/9BW1Ea1rXQDUh6pEUaH99KzOvMXLknJjXGW5/uDspV2IflvX7RrHVjB6 hOTh60Uukiq5j7qn21VnKI3a5suywoPlZUiAAVgcmWodgXNV32AUZe4R76D404fs+ONC vCrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pLq4TvUA0vgV2AysqiD04qtXsJs5QAXjyHW3K3lL3Gg=; b=kxFg46QPIEs2P6nQcD8JPlankbgN4rk6fN8Bnc07r+BDKNU8qhiRFkfesbvMJ5bpVt x0Gw+4jQ4OTP68wrj+/ZR7nKG4NhrWVxfDExrqGa6At/mGB5pjwaH1Chvn1kTl/+EuoJ guHcZeKh4oG4XkGt3uM21/l3DsmTnUnY0VENLUAPvO9OLlmdr55JESQBRdfuACf0z4rd v2DRkaNciWATYFgvRNx3nGENT3Z+jhSEVQhZvwJ8z9NK7U3ePCjqxlOLjM7vvne20Ij8 Iw+8ir7CzsqhbuSF5WYc/9yJquyL/O2bHnZegazXMxrpVR1MSsc+63oRe738Mq3k04MR HAVw== X-Gm-Message-State: ALyK8tKoIe/HkweR5SSf3wqKFS839HAuWoybEK21wNyQXDMUY+9ZcaEagLnrkP23+V8iEtKMoxCEfBLXOsuzww== X-Received: by 10.237.36.220 with SMTP id u28mr5294902qtc.30.1466778190312; Fri, 24 Jun 2016 07:23:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.77.135 with HTTP; Fri, 24 Jun 2016 07:23:09 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Fri, 24 Jun 2016 16:23:09 +0200 Message-ID: Subject: Re: QA script error (libc++) To: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= Cc: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2016 14:23:11 -0000 On Fri, Jun 24, 2016 at 10:25 AM, Fernando Herrero Carr=C3=B3n wrote: > > El 24 jun. 2016 8:16 a. m., "Fernando Apestegu=C3=ADa" > 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. > > Cheers, > Fernando > > [1] https://www.freebsd.org/doc/en/books/porters-handbook/uses-compiler.h= tml