X-Git-Url: https://git.syn-net.org/debian/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fmake-mingw-release.sh;h=673b73cbd3ef2dc90eac31748a99fa93fd3b1777;hb=ad05e83616ca7c348db398c0fd6d5c4acce49fae;hp=5a1d29f6d9227b6cb5829e4a7f36180c0b9dd6d6;hpb=012bc15ee82b75957d9284160fb0a0089396f0d4;p=anytun.git diff --git a/contrib/make-mingw-release.sh b/contrib/make-mingw-release.sh index 5a1d29f..673b73c 100755 --- a/contrib/make-mingw-release.sh +++ b/contrib/make-mingw-release.sh @@ -4,17 +4,17 @@ VER=`cat ../version` for target in w32 w64; do if [ "$target" = "w32" ]; then - LIBGCC_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libgcc_s_sjlj-1.dll - LIBSTDCPP_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libstdc++-6.dll + LIBGCC_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion | sed 's/^\([0-9]*\.[0-9]*\).*/\1-win32/'`/libgcc_s_sjlj-1.dll + LIBSTDCPP_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion | sed 's/^\([0-9]*\.[0-9]*\).*/\1-win32/'`/libstdc++-6.dll else - LIBGCC_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libgcc_s_sjlj-1.dll - LIBSTDCPP_DLL=/usr/lib/gcc/i686-w64-mingw32/`i686-w64-mingw32-g++ -dumpversion`/libstdc++-6.dll + LIBGCC_DLL=/usr/lib/gcc/x86_64-w64-mingw32/`x86_64-w64-mingw32-g++ -dumpversion | sed 's/^\([0-9]*\.[0-9]*\).*/\1-win32/'`/libgcc_s_seh-1.dll + LIBSTDCPP_DLL=/usr/lib/gcc/x86_64-w64-mingw32/`x86_64-w64-mingw32-g++ -dumpversion | sed 's/^\([0-9]*\.[0-9]*\).*/\1-win32/'`/libstdc++-6.dll fi mkdir anytun-$VER-$target cp anytun-$target/*.exe anytun-$VER-$target cp $LIBGCC_DLL $LIBSTDCPP_DLL anytun-$VER-$target cp boost-$target/lib/libboost_{date_time,serialization,system,thread_win32,chrono}.dll anytun-$VER-$target - cp openssl-$target/bin/libeay32.dll anytun-$VER-$target + cp openssl-$target/bin/{libeay32.dll,libcrypto*.dll} anytun-$VER-$target cp anytun-example.bat anytun-$VER-$target cp ../{AUTHORS,ChangeLog,LICENSE,README,version} anytun-$VER-$target cp -r tap?? anytun-$VER-$target