TEA (tclconfig) Source Code

Check-in [b386ba70f1]
Login
Bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [5539b4cca6]: TEA_ADD_LIBS does not work correctly for Darwin->Windows cross-build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b386ba70f18960513c1234047301af1343103f8891710915d794d23632103f9e
User & Date: jan.nijtmans 2020-01-23 09:34:28
References
2020-01-23
09:35 Closed ticket [5539b4cca6]: TEA_ADD_LIBS does not work correctly for Darwin->Windows cross-build plus 7 other changes artifact: 6dc69495d3 user: jan.nijtmans
Context
2020-02-11
10:18
Fix f20bee173b: configure script using tclconfig doesn't honor LDFLAGS on configure run check-in: f636db8084 user: jan.nijtmans tags: trunk
2020-01-23
09:34
Fix [5539b4cca6]: TEA_ADD_LIBS does not work correctly for Darwin->Windows cross-build check-in: b386ba70f1 user: jan.nijtmans tags: trunk
2020-01-06
11:16
On OpenBSD, handle possible LDFLAGS specification on "configure" command-line. check-in: 68a2eea873 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tcl.m4.

2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
#		PKG_LIBS
#------------------------------------------------------------------------
AC_DEFUN([TEA_ADD_LIBS], [
    vars="$@"
    for i in $vars; do
	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
	    i=`echo "$i" | sed -e 's/^\([[^-]].*\)\.lib[$]/-l\1/i'`
	fi
	PKG_LIBS="$PKG_LIBS $i"
    done
    AC_SUBST(PKG_LIBS)
])

#------------------------------------------------------------------------







|







2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
#		PKG_LIBS
#------------------------------------------------------------------------
AC_DEFUN([TEA_ADD_LIBS], [
    vars="$@"
    for i in $vars; do
	if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
	    # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
	    i=`echo "$i" | sed -e 's/^\([[^-]].*\)\.[[lL]][[iI]][[bB]][$]/-l\1/'`
	fi
	PKG_LIBS="$PKG_LIBS $i"
    done
    AC_SUBST(PKG_LIBS)
])

#------------------------------------------------------------------------