Open jannson opened 1 year ago
Addition, The Verbose of cmake gcc command:
/xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/bin/aarch64-openwrt-linux-musl-gcc -DDNIST_STS_E
XE_PATH=tests/soter/nist-sts -I/xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/themis-1.0/src -Os -pipe -mcpu=c
ortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_mus
l.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/themis-1.0:themis-1.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -std=gnu99 -o CMakeFil
es/soter.dir/src/soter/ed25519/fe_0.c.o -c /xxx/openwrt-sdk-21.02.3-realtek-rtd129x_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-aarch64_cortex-a53_musl/themis-1.0/src/soter
/ed25519/fe_0.c
Actually, we test and document installation using make, not cmake. For now, we don't test builds by cmake. CMakeLists.txt was added for IDE support (eg CLion) that worked only with CMakeLists.txt as source of project files.
So, for now the main approach (officially suggested) is tobuild from sources using make
instead of cmake
according to the docs.
Feel free to create PR with changes in CMakeLists.txt & tests the verifies building with cmake.
Describe the bug
I can build package from source in OpenWRT SDK.
To Reproduce Steps to reproduce the behavior:
include_directories(include)