Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-21
18:08 • Closed ticket [8228750a0a]: Makefile issue when building packages plus 5 oth... artifact: e0e688bff7 user: dgp
2026-10-20
12:29 • Ticket [8228750a0a]: 3 changes artifact: 206df9c005 user: serhiy.storchaka
12:23
Fix [9cdb0d5858] and [8228750a0a]: the bundled packages were always built as shared libraries, even ... closed check-in: 732583df8c user: serhiy.storchaka tags: pkgs-shared-make-var
12:22
Fix [9cdb0d5858] and [8228750a0a]: with --disable-shared the bundled packages were still built as sh... closed check-in: 9d87df83e9 user: serhiy.storchaka tags: pkgs-respect-disable-shared
2019-08-13
11:51 • New ticket [8228750a0a] Makefile issue when building packages. artifact: ef5bfea4e6 user: anonymous

Makefile issue when building packages

Closed / Duplicate8228750a0a102cab31002bc812ba051263e3ff8eCreated 7 years agoUpdated 42 days ago
Descriptionplain2019-08-13 11:51:23
I needed a static build of the itcl library.  To successfully do this, I needed to change unix/Makefile.in
from
                     $(PKG_CFG_ARGS) --libdir=$(PACKAGE_DIR) \
                      --enable-shared --enable-threads; ) || exit $$?; \
to
		      --libdir=$(PACKAGE_DIR) \
                      --enable-shared --enable-threads $(PKG_CFG_ARGS) ; ) || exit $$?; \

So that the $(PKG_CFG_ARGS) could override the --enable-shared.
Please update.
Thanks.
Referenced by2
  • 732583df8cFix [9cdb0d5858] and [8228750a0a]: the bundled packages were always built as shared libraries, even with --disable-shared. Keep that default, so that [package require] can load them also from a static Tcl, but allow "make PKG_SHARED=--disable-shared" to build them as static libraries, in unix/Makefile.in and win/Makefile.in. check-in2026-10-20 12:23:34
  • 9d87df83e9Fix [9cdb0d5858] and [8228750a0a]: with --disable-shared the bundled packages were still built as shared libraries, since --enable-shared came after the arguments passed on to their configure. Put it before them, in unix/Makefile.in and win/Makefile.in, so that --disable-shared builds static packages too. Note that static packages cannot be loaded with [package require] unless linked into the application. check-in2026-10-20 12:22:15
serhiy.storchakawiki2026-10-20 12:29:51

Same as [9cdb0d5858], where two proposed fixes are described: pkgs-respect-disable-shared and pkgs-shared-make-var.

dgp Closed ticket [8228750a0a]. [History diff]2026-10-21 18:08:32
Log in (anonymous is fine) to add a comment.