Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-03-11
20:04 • Closed ticket [3607615fff]: tdbc pkgs are always shared plus 8 other changes artifact: 488ce90458 user: dgp
10:44 • New ticket [3607615fff]. artifact: 54918c54ce user: pzaprawa

tdbc pkgs are always shared

Closed / Invalid3607615fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-03-11 10:44:39
After compilation of tcl 8.6 with options:

    './configure --disable-threads --disable-shared --with-tdbcmysql'

and final 'make', tdbc binaries are still dynamic loadable.

In unix/Makefile i found something like this:

PKG_CFG_ARGS            = '--disable-threads' '--disable-shared' '--with-tdbcmysql' 
PKG_DIR                 = ./pkgs
configure-packages:
        @for i in $(PKGS_DIR)/*; do \
        <cut>
                  $$i/configure --with-tcl=../.. \
                      --with-tclinclude=$(GENERIC_DIR) \
                      $(PKG_CFG_ARGS) --libdir=$(PACKAGE_DIR) \
                      --enable-shared --enable-threads; ) || exit $$?; \
        <cut>
        done

-------------
(Linux, Slackware 14, 32b, tcl 8.6)
dgpplain2013-03-11 20:04:37
allow_comments - 1

This is normal.  Look at the configure-packages target:

configure-packages:
        @for i in $(PKGS_DIR)/*; do \
          if [ -d $$i ]; then \
            if [ -x $$i/configure ]; then \
              pkg=`basename $$i`; \
              echo "Configuring package '$$pkg'"; \
              mkdir -p $(PKG_DIR)/$$pkg; \
              if [ ! -f $(PKG_DIR)/$$pkg/Makefile ]; then \
                ( cd $(PKG_DIR)/$$pkg; \
                  $$i/configure --with-tcl=../.. \
                      --with-tclinclude=$(GENERIC_DIR) \
                      $(PKG_CFG_ARGS) --libdir=$(PACKAGE_DIR) \
                      --enable-shared --enable-threads; ) || exit $$?; \
              fi; \
            fi; \
          fi; \
        done


See the --enable-shared stuck in there.  Its purpose is to
explicitly override any --disable-shared option that might
be given.  The whole point of the bundled package collection
is to build them for [load]ing into tclsh.

If you have other uses for these packages where --disable-shared
is appropriate, the packages can support that.  You just need to
build from their sources directly on your own, and not within the
Tcl+bundled packages harness.
Log in (anonymous is fine) to add a comment.