Source: libmicrohttpd
Version: 0.9.71-1
Severity: normal
tags: patch
Hello, can you please make tests cross-friendly, so we can test i386 on amd64?
Trivial patch will be directly committed on git once I have confirmation of the
sanity.
however, it will be similar to this:
--- libmicrohttpd-0.9.71/debian/tests/build 2020-03-14 15:58:09.000000000
+0100
+++ libmicrohttpd-0.9.71/debian/tests/build 2020-07-10 15:55:03.000000000
+0200
@@ -5,6 +5,12 @@
set -e
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+ CROSS_COMPILE=${DEB_HOST_GNU_TYPE}-
+else
+ CROSS_COMPILE=
+fi
+
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
@@ -18,7 +24,7 @@
return 0;
}
EOF
-gcc `pkg-config --cflags libmicrohttpd` -o build_test build_test.c `pkg-config
--libs libmicrohttpd`
+${CROSS_COMPILE}gcc `${CROSS_COMPILE}pkg-config --cflags libmicrohttpd` -o
build_test build_test.c `${CROSS_COMPILE}pkg-config --libs libmicrohttpd`
echo "build: OK"
[ -x build_test ]
./build_test
cheers,
Gianfranco