Closed zhang-wenchao closed 5 years ago
Did you read the documentation?
Cross-compiling
Cross-compilation is fully supported. This is an example of cross-compiling to ARM using the GNU tools for ARM embedded processors:
export PATH=/path/to/gcc-arm-none-eabi/bin:$PATH
export LDFLAGS='--specs=nosys.specs'
export CFLAGS='-Os'
./configure --host=arm-none-eabi --prefix=/install/path
sudo make install
make check can also build the test apps, but these have to be run on the native platform.
Note: --specs=nosys.specs is only required for the ARM compilation toolchain.
@jedisct1
macOS 10.14 gcc-arm-none-eabi-7-2018-q2-update-mac
I have tried it many times.
There must be something wrong with your installation.
I just tried on macOS, using gcc-arm-none-eabi-7-2018-q2-update-mac downloaded from the ARM website, followed these exact instructions and it worked out of the box.
Try without sudo
maybe?
On small devices, you should consider libhydrogen instead of libsodium.