From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Truby Subject: bug#32773: [PATCH] Fix clang libstdc++ header location search Date: Wed, 13 Nov 2019 16:56:04 +0000 Message-ID: <20191113165516.56228-1-david.truby@arm.com> References: <19ece273-ea75-fc9d-4e4b-aa3a68deab6d@yahoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49471) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUwEV-0008Uv-4l for bug-guix@gnu.org; Wed, 13 Nov 2019 12:15:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUwET-0005NR-5t for bug-guix@gnu.org; Wed, 13 Nov 2019 12:15:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUwEQ-0005Kz-M3 for bug-guix@gnu.org; Wed, 13 Nov 2019 12:15:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUwEQ-0001ML-EE for bug-guix@gnu.org; Wed, 13 Nov 2019 12:15:02 -0500 In-Reply-To: <19ece273-ea75-fc9d-4e4b-aa3a68deab6d@yahoo.de> Sender: "Debbugs-submit" Resent-Message-ID: Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "guix-patches@gnu.org" Cc: nd --- gnu/packages/llvm.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 33fb53d65e..0a7efe980f 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -202,6 +202,7 @@ compiler. In LLVM this library is called \"compiler-rt= \".") (lambda* (#:key inputs #:allow-other-keys) (let ((libc (assoc-ref inputs "libc")) (compiler-rt (assoc-ref inputs "clang-runtime")= ) + (gcc (assoc-ref inputs "gcc")) (version (string->number ,(version-major (package-version clang-runtim= e))))) @@ -218,6 +219,10 @@ compiler. In LLVM this library is called \"compiler-r= t\".") (("(^[[:blank:]]+LibDir =3D ).*" _ declaration= ) (string-append declaration "\"" libc "/lib\";= \n")) =20 + ;; Make clang look for libstdc++ in the right = location + (("LibStdCXXIncludePathCandidates\\[\\] =3D \\= {") + (string-append "LibStdCXXIncludePathCandidate= s[] =3D { \"" gcc "/include/c++\",")) + ;; Make sure libc's libdir is on the search pa= th, to ;; allow crt1.o & co. to be found. (("@GLIBC_LIBDIR@") --=20 2.24.0