mangl: fix cross build

This commit is contained in:
Duncaen 2024-12-03 21:39:16 +01:00
parent c75f863eaf
commit 0e424315c2
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
--- a/mandoc/configure
+++ b/mandoc/configure
@@ -176,15 +176,6 @@
if ${COMP} -o "test-${1}" "${SOURCEDIR}/test-${1}.c" ${3} 1>&3 2>&3
then
echo "partial result of ${n}: ${CC} succeeded" 1>&3
- else
- echo "tested ${n}: no (compilation failed)" 1>&2
- echo "result of ${n}: ${CC} failed with exit status $?" 1>&3
- echo "result of compiling ${n}: no" 1>&3
- echo 1>&3
- return 1
- fi
-
- if ./test-${1} 1>&3 2>&3; then
echo "tested ${n}: yes" 1>&2
echo "result of running ${n}: yes" 1>&3
echo 1>&3
@@ -199,10 +190,9 @@
return 0
else
echo "tested ${n}: no (execution failed)" 1>&2
- echo "result of ${n}: execution failed with exit status $?" 1>&3
+ echo "result of ${n}: ${CC} failed with exit status $?" 1>&3
echo "result of running ${n}: no" 1>&3
echo 1>&3
- rm "test-${1}"
return 1
fi
}