[PATCH] Workaround for CMake build to allow CMake build to work on OpenBSD
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 4 04:27:09 PDT 2015
On Sun, Oct 04, 2015 at 05:59:21AM -0400, Brad Smith via llvm-commits wrote:
> On 10/04/15 05:15, Joerg Sonnenberger wrote:
> >On Sat, Sep 19, 2015 at 02:18:43PM -0400, Brad Smith via llvm-commits wrote:
> >>Fix the CMake build with a workaround. OpenBSD seems to have the
> >>same issue as FreeBSD.
> >
> >What issue are you seeing specifically?
>
> -z,defs is broken with shared libraries (undefined symbol environ).
>
> The build has been broken since this commit.. https://github.com/llvm-mirror/llvm/commit/46b1a316812025f88784ee4a3a9438403f6b18a5
That's just the commit that exposed it. Hm. I wonder if we should
instead just mark the environ as weakref. It will be available on runtime,
but that should shut up the linker. It seems to be a better idea in this
case.
Joerg
More information about the llvm-commits
mailing list