diff options
Diffstat (limited to 'contrib/build-env-setup/README.md')
-rw-r--r-- | contrib/build-env-setup/README.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/build-env-setup/README.md b/contrib/build-env-setup/README.md index 5512108..1467f73 100644 --- a/contrib/build-env-setup/README.md +++ b/contrib/build-env-setup/README.md @@ -208,8 +208,13 @@ true \ && git clone --depth 42 --branch "${GIT_TAG:?}" https://github.com/hiddenalpha/GateleenResclone.git . \ && git config advice.detachedHead false \ && git checkout --detach "${GIT_TAG:?}" \ - && if test -n "$HOST"; then HORSCHT="TOOLCHAIN=mingw CC=$HOST-cc LD=$HOST-ld AR=$HOST-ar BINEXT=.exe LIBSEXT=.lib" ;fi \ - && make clean $HORSCHT && make -j$(nproc) $HORSCHT \ + && if test -n "$HOST"; then true \ + && HORSCHT="TOOLCHAIN=mingw CC=$HOST-cc LD=$HOST-ld AR=$HOST-ar BINEXT=.exe LIBSEXT=.lib" \ + && sed -i -E 's;^CFLAGS \?=(.*)?$;CFLAGS ?= -DPCRE_STATIC=1 -DCURL_STATICLIB=1 \1;' Makefile \ + && sed -i -E 's;-larchive;/usr/x86_64-w64-mingw32/lib/libarchive.a;' Makefile \ + && sed -i -E 's;(-Wl,-Bdynamic);\1 -lws2_32 -lbcrypt;' Makefile \ + ;fi \ + && make clean $HORSCHT && make -e -j$(nproc) $HORSCHT \ && find . -not -wholename './dist*' -delete \ && ${PKGDEL:?} $PKGS_TO_DEL && ${PKGCLEAN:?} \ && dirOfDistBundle="$(realpath dist)" \ |