diff --git a/msys2-build.sh b/msys2-build.sh index c30002366..ea1cdf770 100755 --- a/msys2-build.sh +++ b/msys2-build.sh @@ -7,6 +7,9 @@ echo ================================================================ # sed 's/-lm/-lm -lpcreposix/' c/Makefile.am > temp; mv temp c/Makefile.am # sed 's/-lm/-lm -lpcreposix/' c/unit_test/Makefile.am > temp; mv temp c/unit_test/Makefile.am +sed 's/-lm/-lm -static/' c/Makefile.am > temp; mv temp c/Makefile.am +sed 's/-lm/-lm -static/' c/unit_test/Makefile.am > temp; mv temp c/unit_test/Makefile.am + sed 's/#undef MLR_ON_MSYS2/#define MLR_ON_MSYS2/' c/lib/mlr_arch.h > temp; mv temp c/lib/mlr_arch.h echo ================================================================