Unix port using gcc with clang flags
I'm trying to build the Unix port, but I keep getting gcc: error: unrecognized command-line option ‘-Qunused-arguments’.
Looking at online docs, it looks like clang has that option, but gcc does not.
I have CC set to clang(both globally and when I run make, i.e., CC=clang make), but the Makefile seems to insist on using gcc and so I can't work around this by trying to use the appropriate compiler. https://github.com/micropython/micropython/blob/master/ports/unix/README.md also explicitly calls out gcc as the compiler to use.
ports/unix: Disable the shared library of libffi
Hi, I was trying to build an static copy of MicroPython with zig as crosscompiler and I saw a problem building the shared library in the bundled copy of libffi. MicroPython doesn't need the shared library, so I disabled it in the configure.
The change was tested with gcc and clang and both pass the tests.