summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2020-08-11 23:32:06 +0000
committerjca <jca@openbsd.org>2020-08-11 23:32:06 +0000
commitd3e0725e74015be09d8afdbc8ad3a231094b6d08 (patch)
treee67d5d2b89e4b877e2f90e4a7d8ff32674be663b /libexec
parentsetitimer(2): write new timer value in one place (diff)
downloadwireguard-openbsd-d3e0725e74015be09d8afdbc8ad3a231094b6d08.tar.xz
wireguard-openbsd-d3e0725e74015be09d8afdbc8ad3a231094b6d08.zip
clang 10 now emits calls to __multi3 from libcompiler_rt
Hints from kettenis@, ok kettenis@ deraadt@
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.so/sparc64/Makefile.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libexec/ld.so/sparc64/Makefile.inc b/libexec/ld.so/sparc64/Makefile.inc
index ebeb5368213..a06039d6c72 100644
--- a/libexec/ld.so/sparc64/Makefile.inc
+++ b/libexec/ld.so/sparc64/Makefile.inc
@@ -1,7 +1,15 @@
-# $OpenBSD: Makefile.inc,v 1.3 2019/10/20 03:44:49 guenther Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2020/08/11 23:32:06 jca Exp $
CFLAGS += -fpic -msoft-float
AFLAGS += -fpic
LD_SCRIPT = ${.CURDIR}/${MACHINE_CPU}/ld.script
+.if ${COMPILER_VERSION} == "clang"
+# extract components from libcompiler_rt.a
+MDOBJ= multi3.o
+${MDOBJ}:
+ ar x `$(CC) -print-libgcc-file-name` ${MDOBJ}
+OBJS+=${MDOBJ}
+.endif
+
RELATIVE_RELOC=R_SPARC_RELATIVE