Overview
| Artifact ID: | 99d6f2130dd8d4f660fe11dfa13850ac9ed8261c |
|---|---|
| Ticket: | 529801ffffffffffffffffffffffffffffffffff
macosx forgets to do ranlib |
| User & Date: | das on 2002-07-30 17:09:31 |
Changes
- icomment:
Logged In: YES user_id=90580 the line with test "x$DL_OBJS" = "xtclLoadAout.o" has been in configure.in forever (at least since rev 1.57 in core- 8-3-1 from over 2 years ago), it seems to be a special case for "pseudo-static linking" (c.f. comments). It certainly has nothing to do with Darwin/MacOSX however this test is what Jean-Claude apparently had adapted as a kind of platform check for Darwin in his original patch (based on the fact that DL_OBJS==tclLoadDyld.o only ever on Darwin) His patch always did ranlib however and so broke dynamic linking on OSX. While I fixed that problem, I didn't change the test logic (because I didn't fully understand it until now...) the right thing to do is to test against $system, it's also true that RANLIB=':' got lost somwhere in the shuffle as well. (it's there in rev 1.57) would you then agree with something along the lines of the following patch to the current configure.in on the tip of core-8-3- 1-branch ? I realize that there are probably better ways to do this but this rather crude method seems to result in the smallest possible patch for the bug at hand. It should not interfere with other systems since MAKE_LIB will only be changed when on Darwin with static linking on. BTW, this builds fine on the compilefarm on FreeBSD 4.6- STABLE both static and shared, not sure if that would have been one of the BSDs affected by the ranlib problems. Index: configure.in ================================================== ================= RCS file: /cvsroot/tcl/tcl/unix/configure.in,v retrieving revision 1.57.2.11 diff -u -r1.57.2.11 configure.in --- configure.in 24 Jul 2002 13:54:47 -0000 1.57.2.11 +++ configure.in 30 Jul 2002 09:40:22 -0000 @@ -389,6 +389,7 @@ MAKE_LIB="\${STLIB_LD} \[$]@ \${OBJS}" else MAKE_LIB="\${SHLIB_LD} ${TCL_SHLIB_LD_EXTRAS} -o \[$]@ \${OBJS} ${SHLIB_LD_LIBS}" + RANLIB=":" fi else case $system in @@ -405,9 +406,11 @@ TCL_SHLIB_CFLAGS="" eval "TCL_LIB_FILE=libtcl${TCL_UNSHARED_LIB_SUFFIX}" MAKE_LIB="\${STLIB_LD} \[$]@ \${OBJS}" - if test "x$DL_OBJS" = "xtclLoadDyld.o"; then - MAKE_LIB="${MAKE_LIB} ; \${RANLIB} \$@" - fi + case $system in + Darwin-*) + MAKE_LIB="${MAKE_LIB} ; \${RANLIB} \$@" + ;; + esac fi - login: "das"
- mimetype: "text/plain"
- username: "das"