diff options
-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= |