Tcl Source Code

View Ticket
Login
Ticket UUID: fed5069f8a8e59e97af0a784b534919f5b789b1e
Title: NetBSD: support LDFLAGS
Type: Bug Created on: 2017-07-16 09:05:37
Submitter: wiz Assigned to: nobody
Subsystem: 81. Bundled Packages Severity: Minor
Priority: 5 Medium Last modified: 2026-10-22 17:19:29
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-10-21 09:59:44
Version: 8.6.6
Description:
When building tcl on NetBSD, LDFLAGS are not passed to the included pkgs.
The fix is easy: add ${LDFLAGS_DEFAULT} to SHLIB_LD= in the NetBSD case in the pkgs/*/configure files.

Looking at the files, this will also affect other operating systems (except Linux, where SHLIB_LD already includes LDFLAGS_DEFAULT).
User Comments:
serhiy.storchaka added on 2026-10-21 09:59:44:

Fixed in TEA/tclconfig by f636db8084 (2020, ticket [f20bee173b]): MAKE_SHARED_LIB now passes ${LDFLAGS} on all Unix platforms, NetBSD included, so bundled packages built with a current tclconfig honour LDFLAGS.