Skip to content

Commit 5f16308

Browse files
committed
ts
1 parent cb3fc98 commit 5f16308

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build-gnutls.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
# This software is released under the MIT License.
44
# https://opensource.org/licenses/MIT
55

6-
set -e
6+
set -ex
77
SRC_DIR=$(pwd)
88
export GNULIB_SRCDIR=$SRC_DIR/gnutls/gnulib
99
export PATH=$PATH:$GNULIB_SRCDIR
1010

11+
echo -e '[Build gmplib]'
1112
./build-make-dep.sh gmplib --host=${BUILD_ARCH}-windows --prefix=$INSTALL_PREFIX --disable-shared --enable-static --disable-assembly gmp_cv_asm_w32=.word
12-
# mv $INSTALL_PREFIX/lib/libgmp.a $INSTALL_PREFIX/lib/gmp.lib
13+
mv $INSTALL_PREFIX/lib/libgmp.a $INSTALL_PREFIX/lib/gmp.lib
1314

1415

1516

17+
echo -e '[Build nettle]'
1618
cd $SRC_DIR/gnutls/devel/nettle
1719

1820
gnulib-tool --import unistd
@@ -23,13 +25,14 @@ autoconf
2325

2426
make -j$(nproc) install
2527

28+
echo -e '[Build libtasn1]'
2629
cd $SRC_DIR/gnutls/devel/libtasn1
2730
./bootstrap
2831
./configure --host=${BUILD_ARCH}-windows --prefix=$INSTALL_PREFIX --disable-shared --enable-static --disable-valgrind-tests --disable-doc --disable-dependency-tracking CFLAGS=-DASN1_STATIC
2932
make -C lib install
3033
# mv $INSTALL_PREFIX/lib/libtasn1.a $INSTALL_PREFIX/lib/tasn1.lib
3134

32-
35+
echo -e '[Build libev]'
3336
cd $SRC_DIR/libev
3437
gnulib-tool --import sys_time
3538
autoconf
@@ -39,6 +42,7 @@ make install -j$(nproc)
3942

4043

4144

45+
echo -e '[Build gnutls]'
4246
cd $SRC_DIR/gnutls
4347
# find . -name "*.gperf"|xargs -P$(nproc) -I{} sed -i "s/\r//g" '{}'
4448
gnulib-tool --add-import dirent opendir closedir readdir --local-dir=gl

0 commit comments

Comments
 (0)