Ray Donnelly <[email protected]>
writes:
> Thanks, you also had changes to tcl/tk to allow the debug/!strip
> options to behave, care to make a pull request for that?
The build fails because one target that tries to link to the tcl
library fails because it can not find it. So I'm reluctant to
incorporate into MSYS2 a change that it is known to be broken.
Anyways, the change is simple. Here are the modifications to the tcl
PKGBUILD for building a debug tcl dll. The build fails but at that time
tcl86g.dll already exists. Just copy it to /mingw32/bin as tcl86.dll.
Likewise for tk, if you wish. Put a breakpoint on `exit'. You will see
that the first crash happens on `exit', which is called by Tcl_Exit. The
next crash has libgcc_s_dw2-1.dll on the backtrace.
diff --git a/mingw-w64-tcl/PKGBUILD b/mingw-w64-tcl/PKGBUILD
index 3194738..7c66ef6 100644
--- a/mingw-w64-tcl/PKGBUILD
+++ b/mingw-w64-tcl/PKGBUILD
@@ -8,7 +8,7 @@ pkgdesc="The Tcl scripting language (mingw-w64)"
arch=('any')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs" "${MINGW_PACKAGE_PREFIX}-zlib")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
-options=('staticlibs' 'strip' )
+options=('staticlibs' '!strip' 'debug')
license=("custom")
url="http://tcl.sourceforge.net"
source=("http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz"
@@ -43,6 +43,10 @@ prepare() {
}
build() {
+ if check_option "debug" "y"; then
+ extra_config+=( --enable-symbols )
+ fi
+
[[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf
${srcdir}/build-${MINGW_CHOST}
cp -rf "$srcdir/tcl$pkgver/" "${srcdir}/build-${MINGW_CHOST}"
cd "${srcdir}/build-${MINGW_CHOST}"
@@ -52,6 +56,7 @@ build() {
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--enable-threads \
+ "${extra_config[@]}" \
$enable64bit
make -j1
}
------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users