summaryrefslogtreecommitdiffstats
path: root/patches/tcl8.5.7/fix_link_pathes.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/tcl8.5.7/fix_link_pathes.diff')
-rw-r--r--patches/tcl8.5.7/fix_link_pathes.diff54
1 files changed, 54 insertions, 0 deletions
diff --git a/patches/tcl8.5.7/fix_link_pathes.diff b/patches/tcl8.5.7/fix_link_pathes.diff
new file mode 100644
index 000000000..5f021a81f
--- /dev/null
+++ b/patches/tcl8.5.7/fix_link_pathes.diff
@@ -0,0 +1,54 @@
+From: Juergen Beisert <juergen@kreuzholzen.de>
+Subject: Fix config pathes that confuses TK while building
+
+The config includes many paths into the host. This patch generates paths
+that always points to the local install directories. Short: Make it
+SYSROOT aware.
+
+Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
+
+---
+ unix/configure | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+Index: unix/configure
+===================================================================
+--- unix/configure.orig
++++ unix/configure
+@@ -18911,7 +18911,7 @@ else
+ TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`"
+ fi
+ TCL_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_LIB_FLAG}"
+- TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
++ TCL_LIB_SPEC="-L$SYSROOT${libdir} ${TCL_LIB_FLAG}"
+ else
+ TCL_BUILD_EXP_FILE="lib.exp"
+ eval "TCL_EXP_FILE=libtcl${TCL_EXPORT_FILE_SUFFIX}"
+@@ -18944,9 +18944,9 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
+ test -z "$TCL_MODULE_PATH" && \
+ TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
+ elif test "$prefix/lib" != "$libdir"; then
+- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
++ TCL_PACKAGE_PATH="$SYSROOT${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
+ else
+- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}"
++ TCL_PACKAGE_PATH="$SYSROOT${prefix}/lib ${TCL_PACKAGE_PATH}"
+ fi
+
+ #--------------------------------------------------------------------
+@@ -18968,12 +18968,12 @@ else
+ fi
+
+ TCL_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
+-TCL_STUB_LIB_SPEC="-L${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
++TCL_STUB_LIB_SPEC="-L$SYSROOT${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
+ TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
+-TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
++TCL_STUB_LIB_PATH="$SYSROOT${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
+
+ # Install time header dir can be set via --includedir
+-eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
++eval "TCL_INCLUDE_SPEC=\"-I$SYSROOT${includedir}\""
+
+ #------------------------------------------------------------------------
+ # tclConfig.sh refers to this by a different name