wrpearson / fasta36

Git repository for FASTA36 sequence comparison software
Apache License 2.0
117 stars 17 forks source link

Just reporting arm64 works #41

Closed gaboentropy closed 2 years ago

gaboentropy commented 2 years ago

Hi Bill et al!

Happy to report that compiling with Makefile.os_x_arm64 worked. All the programs compiled. All the programs ran. Surprisingly enough, I modified this line in the makefile:

CC = cc -O -g -arch arm64 -Wno-pointer-sign

to:

CC = cc -O3 -g -arch arm64 -arch x86_64 -Wno-pointer-sign

and obtained a "universal" binary, compiled in an M1 mac, that ran all right in both arm64 and x86_64, even in macs with Big Sur:

% file bin/fasta36 
bin/fasta36: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
bin/fasta36 (for architecture x86_64):  Mach-O 64-bit executable x86_64
bin/fasta36 (for architecture arm64):   Mach-O 64-bit executable arm64
%

Best and thanks for your efforts! -Gabo