Skip to content

Instantly share code, notes, and snippets.

@phoenixxie0
Created October 20, 2018 12:59
Show Gist options
  • Save phoenixxie0/c2cfb8cc51a5aee928d115c8a7362145 to your computer and use it in GitHub Desktop.
Save phoenixxie0/c2cfb8cc51a5aee928d115c8a7362145 to your computer and use it in GitHub Desktop.
build-mbedtls.sh
#!/bin/sh
make lib CFLAG='-g -O3 -pipe -march=native -msse4.2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2'
mkdir -p /usr/local/include/mbedtls
cp -r include/mbedtls /usr/local/include
mkdir -p /usr/local/lib
cp -RP library/libmbedtls.* /usr/local/lib
cp -RP library/libmbedx509.* /usr/local/lib
cp -RP library/libmbedcrypto.* /usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment