summaryrefslogtreecommitdiff
path: root/lang/rust/patches/patch-mk_rt.mk
blob: cb4093fe8c9fdd4b6d923b6531b3d7ba14fd190a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-mk_rt.mk,v 1.2 2016/09/12 13:27:33 ryoon Exp $

Fix library location on SunOS.

--- mk/rt.mk.orig	2016-08-16 01:54:35.000000000 +0000
+++ mk/rt.mk
@@ -269,6 +269,16 @@ endif
 COMPRT_DEFINES_$(1) := -DCOMPILER_RT_ENABLE_IOS=ON
 endif
 
+ifeq ($$(findstring solaris,$(1)),solaris)
+COMPRT_DIR_$(1) := sunos
+COMPRT_LIB_NAME_$(1) := clang_rt.builtins-$$(COMPRT_ARCH_$(1))
+endif
+
+ifeq ($$(findstring netbsd,$(1)),netbsd)
+COMPRT_DIR_$(1) := netbsd
+COMPRT_LIB_NAME_$(1) := clang_rt.builtins-$$(COMPRT_ARCH_$(1))
+endif
+
 ifndef COMPRT_DIR_$(1)
 # NB: FreeBSD and NetBSD output to "linux"...
 COMPRT_DIR_$(1) := linux