aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-02-05 15:12:11 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-02-05 15:12:11 +0000
commit902cd39eea04826a46097ae7cd4ccecc3411bcb1 (patch)
tree3649bca1c911343d3ee75d071a32f77996888a39 /configure
parent5cf1df732d93997f3e216c27332ceb45638b8f43 (diff)
downloadmandoc-902cd39eea04826a46097ae7cd4ccecc3411bcb1.tar.gz
mandoc-902cd39eea04826a46097ae7cd4ccecc3411bcb1.tar.zst
mandoc-902cd39eea04826a46097ae7cd4ccecc3411bcb1.zip
No longer try to ask make(1) what the default compiler is, just use "cc".
That line was a bad idea in the first place, it tried to be too clever, and it failed in different ways on different platforms. Even when it succeeded, what make(1) considered the default wasn't always useful. Having a simple and robust default and asking users to override it when needed is better.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 2df028da..053fe43f 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: configure,v 1.71 2019/07/01 22:56:24 schwarze Exp $
+# $Id: configure,v 1.72 2020/02/05 15:12:11 schwarze Exp $
#
# Copyright (c) 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
#
@@ -41,7 +41,7 @@ OSENUM=
OSNAME=
UTF8_LOCALE=
-CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`
+CC=cc
CFLAGS=
LDADD=
LDFLAGS=