diff options
Diffstat (limited to 'scripts/libressl.sh')
| -rw-r--r-- | scripts/libressl.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/libressl.sh b/scripts/libressl.sh index 8706f93..ed330e0 100644 --- a/scripts/libressl.sh +++ b/scripts/libressl.sh @@ -9,11 +9,13 @@ if ! [ -d "$BUILD_DIR" ] ; then tar xfzv ${dist_dir}/$APP_NAME-$VERSION.tar.gz fi cd "$BUILD_DIR" -# export CC=musl-gcc -# export CFLAGS="-static -I$prefix/usr/include" -# export LDFLAGS="-static -L$prefix/usr/lib" +export CFLAGS="-static -I$prefix/usr/include" +export LDFLAGS="-static -L$prefix/usr/lib" export DESTDIR="$prefix" -make clean -./configure --prefix=/usr +make clean || echo "" +./configure --prefix=/usr \ + --host=$BUILD_TGT \ + --with-sysroot=$prefix \ + --enable-static=yes make -j$(nproc) make install |
