aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-12 15:45:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-12 15:45:05 +0000
commit6efdd3d04812610b609a5ee9766ace5288969227 (patch)
treeaf4536450e515a08da16533ac741239335611293 /configure
parent52799799105c58995feb8514e87d7ad9229d522f (diff)
downloadmandoc-6efdd3d04812610b609a5ee9766ace5288969227.tar.gz
mandoc-6efdd3d04812610b609a5ee9766ace5288969227.tar.zst
mandoc-6efdd3d04812610b609a5ee9766ace5288969227.zip
Put compiler arguments that may contain -l at the end; according to
the people at Alpine Linux, gcc 6 seems to fail when it's at the beginning. From Daniel Sabogal via http://git.alpinelinux.org.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index adf9eb48..1b810158 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Id: configure,v 1.54 2016/11/19 15:24:51 schwarze Exp $
+# $Id: configure,v 1.55 2017/01/12 15:45:05 schwarze Exp $
#
# Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org>
#
@@ -145,10 +145,10 @@ ismanual() {
singletest() {
cat 1>&3 << __HEREDOC__
${1}${3}: testing...
-${COMP} ${3} -o test-${1} test-${1}.c
+${COMP} -o test-${1} test-${1}.c ${3}
__HEREDOC__
- if ${COMP} ${3} -o "test-${1}" "test-${1}.c" 1>&3 2>&3; then
+ if ${COMP} -o "test-${1}" "test-${1}.c" ${3} 1>&3 2>&3; then
echo "${1}${3}: ${CC} succeeded" 1>&3
else
echo "${1}${3}: ${CC} failed with $?" 1>&3