diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-28 16:48:00 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-28 16:40:02 +0100 |
commit | 0ee8c1ed2784621ebd67f9267af6505fb0e8bf74 (patch) | |
tree | 77bf452afa08f80e32dab0c455117aa46b7f0afb /Ports | |
parent | 2753505962ac4e95022c949f34baef35accdb39e (diff) | |
download | serenity-0ee8c1ed2784621ebd67f9267af6505fb0e8bf74.zip |
Ports: Install mbedtls into the right directory and build shared libs
Previously we'd install mbedtls into /lib, /include, etc. Instead we
should install this port into /usr/local/lib.
This also builds shared libraries for this port.
Diffstat (limited to 'Ports')
-rwxr-xr-x | Ports/mbedtls/package.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Ports/mbedtls/package.sh b/Ports/mbedtls/package.sh index 35f66f0b5f..b7790b9dcb 100755 --- a/Ports/mbedtls/package.sh +++ b/Ports/mbedtls/package.sh @@ -4,3 +4,10 @@ version=2.16.2 files="https://tls.mbed.org/download/mbedtls-${version}-apache.tgz mbedtls-${version}-apache.tgz a6834fcd7b7e64b83dfaaa6ee695198cb5019a929b2806cb0162e049f98206a4" makeopts="CFLAGS=-DPLATFORM_UTIL_USE_GMTIME" auth_type=sha256 + +install() { + run make DESTDIR="${SERENITY_INSTALL_ROOT}/usr/local" $installopts install + ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmbedcrypto.so -Wl,-soname,libmbedcrypto.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmbedcrypto.a -Wl,--no-whole-archive + ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmbedx509.so -Wl,-soname,libmbedx509.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmbedx509.a -Wl,--no-whole-archive -lmbedcrypto + ${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmbedtls.so -Wl,-soname,libmbedtls.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmbedtls.a -Wl,--no-whole-archive -lmbedcrypto -lmbedx509 +} |