Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2019 00:48:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237594] lang/llvm80: improvi clang on GCC architectures
Message-ID:  <bug-237594-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237594

            Bug ID: 237594
           Summary: lang/llvm80: improvi clang on GCC architectures
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org

Created attachment 204055
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204055&action=
=3Dedit
patch

Clang thinks FreeBSD uses libc++ everywhere and tries to use it. This doesn=
't
work on GCC architectures, there's no Clang there. To compile with Clang, o=
ne
needs to pass -stdlib=3Dlibstdc++ and appriopriate flags to libstdc++ from =
GCC
from ports (libstdc++ from base is too old).

With this patch, you can simply use -stdlib=3Dlibstdc++ and GCC will be fou=
nd
automatically, making building with clang much easier on GCC architectures.

Tested on powerpc64.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237594-7788>