bbl2kml icon indicating copy to clipboard operation
bbl2kml copied to clipboard

Build ser2tcp as a universal binary

Open mmosca opened this issue 1 year ago • 4 comments

My Makefile fu is a bit rusty, but I believe this gets the job done.

Also, clean had rm ~*, Was that a typo for *~?

mmosca avatar Apr 27 '24 16:04 mmosca

My Makefile fu is a bit rusty, but I believe this gets the job done.

Also, clean had rm ~*, Was that a typo for *~?

Huum interesting typo. Thanks for PR.

stronnag avatar Apr 27 '24 16:04 stronnag

Unfortunately this precludes building on older MacOS (and maybe pure x86_64).

make ser2tcp
cc -O2 -Wall -Wextra -pedantic -std=gnu17 -target x86_64-apple-macos11  -s  ser2tcp.c   -o ser2tcp
clang: error: invalid Darwin version number: macos11
clang: error: invalid version number in '--target=x86_64-apple-macos11'

and my MacOs foo is woefully deficient to address this.

So rather than trouble you further, I'll fix this by adding this PR to generate Makefile.macos11 => (make -f Makefile.macos11) to avoid further Makefile complexity.

stronnag avatar Apr 27 '24 17:04 stronnag

Can you share a full uname -a of your mac? I can try check if it is at least a given version before trying to build universal

mmosca avatar Apr 27 '24 18:04 mmosca

Just a crappy old VM

macbox:~ jrh$ uname -r
19.6.0
macbox:~ jrh$ uname -a
Darwin macbox 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64 x86_64

If it didn't want more than 100% of the extant disk space to update it, then I'd update it. It's only there so I can build some MacOS CLI tools I maintain.

stronnag avatar Apr 27 '24 18:04 stronnag