From 44748a8e8a298dafc88c513c8ba5f716b3b90be2 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Thu, 24 Sep 2020 15:39:32 +0200 Subject: [PATCH] Try to use gmake before falling back to make On some platforms (like FreeBSD) make is not GNU make, which is the make used by the angr project. This patch makes it easier to find the desired make binary. --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 74477b3dc0..c1fd92e0dd 100644 --- a/setup.py +++ b/setup.py @@ -68,8 +68,9 @@ def _build_native(): pass cmd1 = ['nmake', '/f', 'Makefile-win'] - cmd2 = ['make'] - for cmd in (cmd1, cmd2): + cmd2 = ['gmake'] + cmd3 = ['make'] + for cmd in (cmd1, cmd2, cmd3): try: if subprocess.call(cmd, cwd='native', env=env) != 0: raise LibError('Unable to build angr_native')