diff options
author | van Hauser <vh@thc.org> | 2021-03-01 10:12:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 10:12:04 +0100 |
commit | bd0a23de73011a390714b9f3836a46443054fdd5 (patch) | |
tree | 9b2335f357e84e18e4c8259581360923921ca8b2 /qemu_mode/build_qemu_support.sh | |
parent | 5cf0655071a83b1c87490be8399fe2365f087223 (diff) | |
parent | 4619a1395b9a414e5e11148d79fde3a7fa348e87 (diff) | |
download | afl++-bd0a23de73011a390714b9f3836a46443054fdd5.tar.gz |
Merge pull request #767 from AFLplusplus/dev 3.10c
Final push for release
Diffstat (limited to 'qemu_mode/build_qemu_support.sh')
-rwxr-xr-x | qemu_mode/build_qemu_support.sh | 14 |
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 ..." |