KJ7LNW / xnec2c

Xnec2c is a high-performance multi-threaded electromagnetic simulation package to model antenna near- and far-field radiation patterns for Linux and UNIX operating systems.
https://www.xnec2c.org/
GNU General Public License v3.0
77 stars 16 forks source link

Fix cross compilation #12

Closed paper42 closed 2 years ago

paper42 commented 2 years ago

102e3cef58eb796dd6b3bb099ed0103bcc3d9c75 introduced a check for LMID in libc to fix compilation on musl, but it used AC_RUN_IFELSE even though only a compile check is needed. AC_RUN_IFELSE is not available with cross compilation.

KJ7LNW commented 2 years ago

Thank you for the contribution!

To what platform are you cross-compiling?

-Eric

paper42 commented 2 years ago

Thank you for the contribution!

To what platform are you cross-compiling?

-Eric

This was part of my update of xnec2c in Void Linux which cross compiles to arm architectures (armv6l, armv7l and aarch64), but I wasn't able to run test it on these architectures.

KJ7LNW commented 2 years ago

Neat! The original author, Neoklis, runs Void Linux on his desk, so xnec2c was developed there (or at least well tested there).

Thanks again for your contribution!