Overview
Comment: | Updated to build static library as PIC when building for KitDLL
Fixed issue with Metakit using "g++" for the shared object linker, even when cross-compiling |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0eca481f0182660f8906c399d286de19 |
User & Date: | rkeene on 2011-03-09 14:35:53 |
Other Links: | manifest | tags |
Context
2011-03-09
| ||
14:36 | Updated to build full Tclkit when cross-compiling to Linux/amd64 check-in: 53587b62ec user: rkeene tags: trunk | |
14:35 |
Updated to build static library as PIC when building for KitDLL
Fixed issue with Metakit using "g++" for the shared object linker, even when cross-compiling check-in: 0eca481f01 user: rkeene tags: trunk | |
2011-03-08
| ||
04:23 | Added build script to cross-compile Linux/amd64 kits check-in: 5715f1901b user: rkeene tags: trunk | |
Changes
Modified mk4tcl/build.sh from [9c93a36278] to [1ccf77c409].
︙ | |||
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | + + + + + + + + | tryopts="--enable-shared --disable-shared" elif [ "${STATICMK4}" = "-1" ]; then tryopts="--enable-shared" else tryopts="--disable-shared" fi SAVE_CXXFLAGS="${CXXFLAGS}" for tryopt in $tryopts __fail__; do # Clean up, if needed make distclean >/dev/null 2>/dev/null rm -rf "${INSTDIR}" mkdir "${INSTDIR}" if [ "${tryopt}" = "__fail__" ]; then exit 1 fi if [ "${tryopt}" == "--enable-shared" ]; then isshared="1" else isshared="0" fi # If build a static Mk4tcl for KitDLL, ensure that we use PIC # so that it can be linked into the shared object if [ "${isshared}" = "0" -a "${KITTARGET}" = "kitdll" ]; then CXXFLAGS="${SAVE_CXXFLAGS} -fPIC" export CXXFLAGS fi ( echo "Running: ./configure $tryopt --prefix=\"${INSTDIR}\" --exec-prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}/../generic\" ${CONFIGUREEXTRA}" ./configure $tryopt --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}/../generic" ${CONFIGUREEXTRA} echo "Running: ${MAKE:-make} tcllibdir=\"${INSTDIR}/lib\" AR=\"${AR:-ar}\" RANLIB=\"${RANLIB:-ranlib}\"" ${MAKE:-make} tcllibdir="${INSTDIR}/lib" AR="${AR:-ar}" RANLIB="${RANLIB:-ranlib}" || exit 1 |
︙ |
Added mk4tcl/patches/all/metakit-2.4.9.7-fixsharedobjlinker.diff version [6280191256].
|