|
Added
Link Here
|
| 1 |
--- setup.py.orig 2024-03-11 12:49:34 UTC |
| 2 |
+++ setup.py |
| 3 |
@@ -21,7 +21,8 @@ SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or |
| 4 |
ISA_L_SOURCE = os.path.join("src", "isal", "isa-l") |
| 5 |
|
| 6 |
SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or |
| 7 |
- sys.platform.startswith("darwin")) |
| 8 |
+ sys.platform.startswith("darwin") or |
| 9 |
+ sys.platform.startswith("freebsd")) |
| 10 |
SYSTEM_IS_WINDOWS = sys.platform.startswith("win") |
| 11 |
|
| 12 |
# Since pip builds in a temp directory by default, setting a fixed file in |
| 13 |
@@ -113,7 +114,7 @@ def build_isa_l(): |
| 14 |
cflags_param = "CFLAGS_aarch64" |
| 15 |
else: |
| 16 |
cflags_param = "CFLAGS_" |
| 17 |
- subprocess.run(["make", "-j", str(cpu_count), "-f", "Makefile.unx", |
| 18 |
+ subprocess.run(["gmake", "-j", str(cpu_count), "-f", "Makefile.unx", |
| 19 |
"isa-l.h", "bin/isa-l.a", |
| 20 |
f"{cflags_param}={build_env.get('CFLAGS', '')}"], |
| 21 |
**run_args) |