void-packages/srcpkgs/mdocml/patches/cross.patch

30 lines
742 B
Diff

--- configure.orig
+++ configure
@@ -168,14 +168,6 @@
if ${COMP} -o "test-${1}" "${SOURCEDIR}/test-${1}.c" ${3} ${4} 1>&3 2>&3
then
echo "partial result of ${n}: ${CC} succeeded" 1>&3
- else
- 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
@@ -185,10 +177,9 @@
rm "test-${1}"
return 0
else
- 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
}