Check-in [82f72a0dcd]
Overview
Comment:Updated to remove duplicate library references when linking in Tk
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:82f72a0dcdf8efd086681f33a2ae691884d8a70e
User & Date: rkeene on 2010-09-26 04:46:20
Other Links: manifest | tags
Context
2010-09-26
04:46
Updated to support cross-compiling Tcl 8.5.9 check-in: cdb34a8a59 user: rkeene tags: trunk
04:46
Updated to remove duplicate library references when linking in Tk check-in: 82f72a0dcd user: rkeene tags: trunk
04:46
Added script to publish test results

Added new "parray" test check-in: 2a8304f779 user: rkeene tags: trunk

Changes

Modified kitsh/buildsrc/kitsh-0.0/aclocal.m4 from [e5b75fa21b] to [04ee15ac39].

    81     81   
    82     82   	if test -f "${tkconfigsh}"; then
    83     83   		. "${tkconfigsh}"
    84     84   
    85     85   		CFLAGS="${CFLAGS} ${TK_INCLUDE_SPEC} -I${tkconfigshdir} -I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/xlib"
    86     86   		CPPFLAGS="${CPPFLAGS} ${TK_INCLUDE_SPEC} -I${tkconfigshdir} -I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/xlib"
    87     87   		LIBS="${LIBS} ${TK_LIBS}"
           88  +
           89  +		NEWLIBS=""
           90  +		for lib in ${LIBS}; do
           91  +			if echo "${lib}" | grep '^-l' >/dev/null; then
           92  +				if echo " ${NEWLIBS} " | grep " ${lib} " >/dev/null; then
           93  +					continue
           94  +				fi
           95  +			fi
           96  +			NEWLIBS="${NEWLIBS} ${lib}"
           97  +		done
           98  +		LIBS="${NEWLIBS}"
    88     99   	fi
    89    100   
    90    101   	AC_SUBST(CFLAGS)
    91    102   	AC_SUBST(CPPFLAGS)
    92    103   	AC_SUBST(LIBS)
    93    104   
    94    105   	AC_MSG_RESULT([$tkconfigsh])