aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-01 09:37:07 +0100
committervanhauser-thc <vh@thc.org>2021-03-01 09:37:07 +0100
commit07884e00549b247d59c6289e58808aae401eeb79 (patch)
tree5008b315b9e10f09022860cf8f56eae08b5a3840
parentbdadbb7207dc5a5cf822d77b9619ccf59f69394a (diff)
downloadafl++-07884e00549b247d59c6289e58808aae401eeb79.tar.gz
feodora qemu lib fix
-rwxr-xr-xqemu_mode/build_qemu_support.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh
index 50e5d4e8..815e77d6 100755
--- a/qemu_mode/build_qemu_support.sh
+++ b/qemu_mode/build_qemu_support.sh
@@ -374,10 +374,20 @@ if [ "$ORIG_CROSS" = "" ]; then
fi
fi
-if ! command -v "$CROSS" > /dev/null
-then
+if ! command -v "$CROSS" > /dev/null ; then
+ if [ "$CPU_TARGET" = "$(uname -m)" ] ; then
+ echo "[+] Building afl++ qemu support libraries with CC=$CC"
+ echo "[+] Building libcompcov ..."
+ make -C libcompcov && echo "[+] libcompcov ready"
+ echo "[+] Building unsigaction ..."
+ make -C unsigaction && echo "[+] unsigaction ready"
+ echo "[+] Building libqasan ..."
+ make -C libqasan && echo "[+] unsigaction ready"
+ else
echo "[!] Cross compiler $CROSS could not be found, cannot compile libcompcov libqasan and unsigaction"
+ fi
else
+ echo "[+] Building afl++ qemu support libraries with CC=$CROSS"
echo "[+] Building libcompcov ..."
make -C libcompcov CC=$CROSS && echo "[+] libcompcov ready"
echo "[+] Building unsigaction ..."