git: 3a8f6e50d75a - 2022Q1 - cad/opencascade: link with execinfo

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Mon, 31 Jan 2022 20:39:07 UTC
The branch 2022Q1 has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a8f6e50d75a904f5ec6e46005eb1b885563d76c

commit 3a8f6e50d75a904f5ec6e46005eb1b885563d76c
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2022-01-31 17:12:30 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2022-01-31 20:38:32 +0000

    cad/opencascade: link with execinfo
    
    Fix a failure detected in another project:
    > ImportError: /usr/local/lib/libTKernel.so.7: Undefined symbol "backtrace"
    
    PR:             261583
    Reported by:    yuri
    
    (cherry picked from commit a961a22e6f7c4287511ac582362e65236ece4725)
---
 cad/opencascade/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile
index 9c97b62d47ea..7c34082f9c5b 100644
--- a/cad/opencascade/Makefile
+++ b/cad/opencascade/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	opencascade
 PORTVERSION=	7.6.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	cad science
 MASTER_SITES=	LOCAL/thierry
 
@@ -49,7 +49,7 @@ OPTIONS_DEFAULT=FFMPEG VIS
 OPTIONS_SUB=	yes
 
 REINPLACE_ARGS=	-i ""
-LDFLAGS+=	-Wl,--allow-shlib-undefined
+LDFLAGS+=	-Wl,--allow-shlib-undefined -lexecinfo
 CMAKE_ARGS+=	-DINSTALL_DIR=${OCCROOT}				\
 		-DINSTALL_DIR_INCLUDE=${PREFIX}/include/OpenCASCADE	\
 		-DINSTALL_DIR_LIB=${PREFIX}/lib				\