diff options
| author | hexcoder- <heiko@hexco.de> | 2021-01-02 19:59:06 +0100 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2021-01-02 19:59:06 +0100 |
| commit | d2a1f05a69afd19ae6017575e0e620fc07827bad (patch) | |
| tree | 32bfc80e13592c77a7f0fde49a920e66b476b15f /unicorn_mode | |
| parent | d687fbdfb4d3fc1485c9ab9d46da2546ae243f4a (diff) | |
| download | afl++-d2a1f05a69afd19ae6017575e0e620fc07827bad.tar.gz | |
add first support for DragonFly OS
Diffstat (limited to 'unicorn_mode')
| -rwxr-xr-x | unicorn_mode/build_unicorn_support.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh index f1306a06..d6fc58e4 100755 --- a/unicorn_mode/build_unicorn_support.sh +++ b/unicorn_mode/build_unicorn_support.sh @@ -44,7 +44,7 @@ echo "[*] Performing basic sanity checks..." PLT=`uname -s` -if [ ! "$PLT" = "Linux" ] && [ ! "$PLT" = "Darwin" ] && [ ! "$PLT" = "FreeBSD" ] && [ ! "$PLT" = "NetBSD" ] && [ ! "$PLT" = "OpenBSD" ]; then +if [ ! "$PLT" = "Linux" ] && [ ! "$PLT" = "Darwin" ] && [ ! "$PLT" = "FreeBSD" ] && [ ! "$PLT" = "NetBSD" ] && [ ! "$PLT" = "OpenBSD" ] && [ ! "$PLT" = "DragonFly" ]; then echo "[-] Error: Unicorn instrumentation is unsupported on $PLT." exit 1 @@ -89,6 +89,12 @@ if [ "$PLT" = "FreeBSD" ]; then TARCMD=gtar fi +if [ "$PLT" = "DragonFly" ]; then + MAKECMD=gmake + CORES=`sysctl -n hw.ncpu` + TARCMD=tar +fi + if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then MAKECMD=gmake CORES=`sysctl -n hw.ncpu` |
