Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2021 12:07:47 GMT
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 188a5737a6e9 - main - graphics/gegl: Fix build WITH_DEBUG.
Message-ID:  <202105311207.14VC7lgC057260@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=188a5737a6e9c2510b13aaf1dbd791fd349c04e1

commit 188a5737a6e9c2510b13aaf1dbd791fd349c04e1
Author:     Michael Zhilin <mizhka@FreeBSD.org>
AuthorDate: 2021-05-31 12:06:11 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2021-05-31 12:06:11 +0000

    graphics/gegl: Fix build WITH_DEBUG.
    
    ld: error: undefined symbol: backtrace_symbols_fd
    >>> referenced by gegl-buffer.c:349 (../gegl/buffer/gegl-buffer.c:349)
    >>>               gegl/libgegl-0.4.so.0.427.1.p/buffer_gegl-buffer.c.o:(gegl_buffer_leaks)
    >>> referenced by gegl-buffer.c:939 (../gegl/buffer/gegl-buffer.c:939)
    >>>               gegl/libgegl-0.4.so.0.427.1.p/buffer_gegl-buffer.c.o:(gegl_bt)
    
    ld: error: undefined symbol: backtrace
    >>> referenced by gegl-buffer.c:938 (../gegl/buffer/gegl-buffer.c:938)
    >>>               gegl/libgegl-0.4.so.0.427.1.p/buffer_gegl-buffer.c.o:(gegl_bt)
    >>> referenced by gegl-buffer.c:922 (../gegl/buffer/gegl-buffer.c:922)
    >>>               gegl/libgegl-0.4.so.0.427.1.p/buffer_gegl-buffer.c.o:(gegl_buffer_set_alloc_stack)
    cc: error: linker command failed with exit code 1 (use -v to see invocation)
    
    PR:             253788
---
 graphics/gegl/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/graphics/gegl/Makefile b/graphics/gegl/Makefile
index 51cf4ad809ee..1d2eaeb42308 100644
--- a/graphics/gegl/Makefile
+++ b/graphics/gegl/Makefile
@@ -127,6 +127,10 @@ MESON_ARGS+=	-Dpangocairo=disabled
 PLIST_SUB+=	PANGOCAIRO="@comment "
 .endif
 
+.if defined(WITH_DEBUG)
+LDFLAGS+=	-lexecinfo
+.endif
+
 post-patch:
 .if ${CHOSEN_COMPILER_TYPE} == clang
 	${REINPLACE_CMD} -e '/altivec.h/d' ${WRKSRC}/gegl/opencl/cl_platform.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105311207.14VC7lgC057260>