I just tried a OSX build on the head (74217ee) and the build worked for me and passed the build tests. I tried with GNU Make:
export SHARED=1 make clean && make
And CMake:
mkdir build cd build cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On ..
Both built without problem for me.
This has been broken in the past, but it seems to be working at the moment.
Regards
Simon
On 01/12/2021, 14:38, "mbed-tls on behalf of Gilles Peskine via mbed-tls" <mbed-tls-bounces@lists.trustedfirmware.org on behalf of mbed-tls@lists.trustedfirmware.org> wrote:
Hi,
Shared library builds are supposed to work on macOS, but we don't have macOS on our CI, so the code is only ever manually tested, and I don't know if the cmake shared library build gets tested often (maybe in a macOS distribution such as brew/fink/macports/…?). So if it broke, we might not notice.
I do notice a typo in the code you posted:
cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On ..
is missing a dash in -D. Can you please double-check the code you ran?
-- Gilles Peskine Mbed TLS developer
On 01/12/2021 14:55, Felipe Gasper via mbed-tls wrote: > Hello, > > I’m trying to build shared from git on macOS and having no luck. I’m doing: > >> mkdir build; cd build >> cmake DUSE_SHARED_MBEDTLS_LIBRARY=On .. > … > >> make > … > >> ls -la library > total 2944 > drwxr-xr-x 10 felipe staff 320 Dec 1 08:49 . > drwxr-xr-x 15 felipe staff 480 Dec 1 08:49 .. > drwxr-xr-x 8 felipe staff 256 Dec 1 08:49 CMakeFiles > -rw-r--r-- 1 felipe staff 92755 Dec 1 08:49 Makefile > -rw-r--r-- 1 felipe staff 2942 Dec 1 08:49 cmake_install.cmake > -rw-r--r-- 1 felipe staff 34055 Dec 1 08:49 error.c > -rw-r--r-- 1 felipe staff 916112 Dec 1 08:49 libmbedcrypto.a > -rw-r--r-- 1 felipe staff 315856 Dec 1 08:49 libmbedtls.a > -rw-r--r-- 1 felipe staff 104072 Dec 1 08:49 libmbedx509.a > -rw-r--r-- 1 felipe staff 26265 Dec 1 08:49 version_features.c > > Am I just missing something? It seems like I’m following what the README says to do; I also did `export SHARED=1` just in case, but that made no difference. > > Thank you in advance! > > -FG
-- mbed-tls mailing list mbed-tls@lists.trustedfirmware.org https://lists.trustedfirmware.org/mailman/listinfo/mbed-tls