aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Zhilin <mizhka@FreeBSD.org>2021-05-31 12:06:11 +0000
committerMathieu Arnold <mat@FreeBSD.org>2021-05-31 12:06:11 +0000
commit188a5737a6e9c2510b13aaf1dbd791fd349c04e1 (patch)
tree27ca36d09da43cb0e3d5dfd2aaf6428a78e833e4
parent3aa7a82534ec67d837a2e305480b45007f3d9b15 (diff)
downloadports-188a5737a6e9c2510b13aaf1dbd791fd349c04e1.tar.gz
ports-188a5737a6e9c2510b13aaf1dbd791fd349c04e1.zip
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
-rw-r--r--graphics/gegl/Makefile4
1 files changed, 4 insertions, 0 deletions
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