diff options
author | vanhauser-thc <vh@thc.org> | 2021-03-01 09:37:07 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-03-01 09:37:07 +0100 |
commit | 07884e00549b247d59c6289e58808aae401eeb79 (patch) | |
tree | 5008b315b9e10f09022860cf8f56eae08b5a3840 | |
parent | bdadbb7207dc5a5cf822d77b9619ccf59f69394a (diff) | |
download | afl++-07884e00549b247d59c6289e58808aae401eeb79.tar.gz |
feodora qemu lib fix
-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 ..." |