git: 24e4736c1314 - main - graphics/libraw: link against libomp with OPENMP=on
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 20:32:44 UTC
The branch main has been updated by cmt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=24e4736c1314c59bedcba20bdb2e20e571e5b650
commit 24e4736c1314c59bedcba20bdb2e20e571e5b650
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2021-12-10 20:30:10 +0000
Commit: Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2021-12-10 20:32:20 +0000
graphics/libraw: link against libomp with OPENMP=on
Since 07fb2d5e9d00 consumers - most notably shotwell - crashed hard
on RAW file operations when libraw was built with OPENMP=on:
ld-elf.so.1: /usr/local/lib/libraw.so.20: Undefined symbol "__kmpc_fork_call"
adding -lomp to libraw's LDFLAGS (via OPENMP_LDFLAGS, so it stays
conditional) fixes the issue.
PR: 259904
Approved by: maintainer-timeout (jhale@)
---
graphics/libraw/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/graphics/libraw/Makefile b/graphics/libraw/Makefile
index a069769d1b24..58c89fd37c21 100644
--- a/graphics/libraw/Makefile
+++ b/graphics/libraw/Makefile
@@ -2,7 +2,7 @@
PORTNAME= libraw
PORTVERSION= 0.20.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.libraw.org/data/
DISTNAME= LibRaw-${PORTVERSION}
@@ -38,6 +38,7 @@ LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2
OPENMP_DESC= OpenMP support (implies GCC)
OPENMP_CONFIGURE_ENABLE= openmp
+OPENMP_LDFLAGS+= -lomp
RPIRAW_DESC= Raspberry Pi RAW+JPEG support
RPIRAW_CPPFLAGS= -DUSE_6BY9RPI