diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2021-05-14 02:29:01 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2021-05-14 02:29:01 +0000 |
commit | 33ec9339f12ca3162fc9ec6bd438e76a9e746f7c (patch) | |
tree | eaca36c9b50a41265a1eb67e535eb3f0943b64b9 /gnu/usr.bin | |
parent | 615e0657b3fb6d5ebcdae28668d3f0e69605b532 (diff) |
On riscv64, dynamically linked clang binary fails with:
libc++abi: Pure virtual function called!
By statically linking clang (and *-tblgen) this problem is worked around
at least for now.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/clang/Makefile.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index 17f932106d9..4928765acb4 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.22 2021/04/28 12:55:37 patrick Exp $ +# $OpenBSD: Makefile.inc,v 1.23 2021/05/14 02:29:00 drahn Exp $ CLANG_SRCS?= ${.CURDIR}/../../../llvm/clang LLDB_SRCS?= ${.CURDIR}/../../../llvm/lldb @@ -16,6 +16,10 @@ CC= egcc CXX= eg++ .endif +.if ${MACHINE_ARCH} == "riscv64" +LDSTATIC=-static +.endif + DEBUG= NOPIE= |