From 21c4bd8da93cc1b7d8d2b5aa9501244282fff358 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 6 Dec 2022 08:55:39 +0000 Subject: [PATCH] lang/tcl8[6-7]: fix build with clang/lld 15 PR: 268178 Reported by: dim --- lang/tcl86/Makefile | 1 + lang/tcl87/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/lang/tcl86/Makefile b/lang/tcl86/Makefile index 150445ac2ad5..c3ae847823a2 100644 --- a/lang/tcl86/Makefile +++ b/lang/tcl86/Makefile @@ -23,6 +23,7 @@ CONFIGURE_ARGS= --enable-shared \ --enable-man-suffix=.${MAN_SUFFIX} \ --includedir=${PREFIX}/include/tcl${TCL_VER} CONFIGURE_ENV= PORTSDIR=${PORTSDIR} +LDFLAGS+= -Wl,-z,muldefs OPTIONS_DEFINE= TCLMAN TZDATA THREADS DEBUG OPTIONS_DEFINE_amd64= DTRACE diff --git a/lang/tcl87/Makefile b/lang/tcl87/Makefile index 96edfbaf9d01..2e95b4a7a0aa 100644 --- a/lang/tcl87/Makefile +++ b/lang/tcl87/Makefile @@ -55,6 +55,7 @@ CONFIGURE_ARGS= --enable-shared \ --includedir=${PREFIX}/include/tcl${TCL_VER} \ --enable-symbols \ --with-system-libtommath +LDFLAGS+= -Wl,-z,muldefs TCL_VERSION= 8.7a5 TCL_VER= 8.7