summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2018-09-09 10:01:26 +0000
committerschmonz <schmonz@pkgsrc.org>2018-09-09 10:01:26 +0000
commit4dc0a778b34ebc80ebfd24b0ea74b069fc467246 (patch)
treee3b7c801c880f8a2f2f2df5816406be2ae5102e1 /bootstrap
parent1bd79841cbe6d657b615a764a10566c818ce59cb (diff)
downloadpkgsrc-4dc0a778b34ebc80ebfd24b0ea74b069fc467246.tar.gz
On OpenBSD, detect clang and prefer it over gcc. Addresses pkg/53170.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/bootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index f798d94faf4..e4025421240 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.249 2018/08/12 08:46:41 bsiegert Exp $
+# $NetBSD: bootstrap,v 1.250 2018/09/09 10:01:26 schmonz Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -778,6 +778,8 @@ OpenBSD)
need_sed=no
set_opsys=no
machine_arch=`arch -s`
+ CC=${CC:-cc}; export CC
+ check_compiler=yes
;;
OSF1)
root_group=system