@@ -74,7 +74,7 @@ def build_extension(self, ext):
7474 isa_l_build_dir = build_isa_l ()
7575 if SYSTEM_IS_UNIX :
7676 ext .extra_objects = [
77- os .path .join (isa_l_build_dir , "bin " , "isa-l .a" )]
77+ os .path .join (isa_l_build_dir , ".libs " , "libisal .a" )]
7878 elif SYSTEM_IS_WINDOWS :
7979 ext .extra_objects = [
8080 os .path .join (isa_l_build_dir , "isa-l_static.lib" )]
@@ -113,17 +113,12 @@ def build_isa_l():
113113 cpu_count = os .cpu_count () or 1 # os.cpu_count() can return None
114114 run_args = dict (cwd = build_dir , env = build_env )
115115 if SYSTEM_IS_UNIX :
116- if platform .machine () == "aarch64" :
117- cflags_param = "CFLAGS_aarch64"
118- else :
119- cflags_param = "CFLAGS_"
120116 make_cmd = "make"
121117 if SYSTEM_IS_BSD :
122118 make_cmd = "gmake"
123- subprocess .run ([make_cmd , "-j" , str (cpu_count ), "-f" , "Makefile.unx" ,
124- "isa-l.h" , "bin/isa-l.a" ,
125- f"{ cflags_param } ={ build_env .get ('CFLAGS' , '' )} " ],
126- ** run_args )
119+ subprocess .run (os .path .join (build_dir , "autogen.sh" ), ** run_args )
120+ subprocess .run ([os .path .join (build_dir , "configure" )], ** run_args )
121+ subprocess .run ([make_cmd , "-j" , str (cpu_count )], ** run_args )
127122 elif SYSTEM_IS_WINDOWS :
128123 subprocess .run (["nmake" , "/f" , "Makefile.nmake" ], ** run_args )
129124 else :
0 commit comments