diff options
author | he <he@pkgsrc.org> | 2021-12-29 12:10:32 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2021-12-29 12:10:32 +0000 |
commit | 3d994400d966b999683c7290bdf6428b2d735bb8 (patch) | |
tree | 21f8e5e992965608b60590007c03e49d7629fc28 /graphics/graphviz | |
parent | 296616f7deb2d8687f255695f937994a58872fc3 (diff) | |
download | pkgsrc-3d994400d966b999683c7290bdf6428b2d735bb8.tar.gz |
Build with -fopenmp on NetBSD/powerpc, so that we link explicitly
with -lgomp and thereby avoid overflowing the static thread local
storage allocated in ld.elf_so when libgomp.so is dlopen()ed
indirectly via libgvplugin_gd.so.
Bump PKGREVISION.
Diffstat (limited to 'graphics/graphviz')
-rw-r--r-- | graphics/graphviz/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile index 6f1d103f346..a259ee89430 100644 --- a/graphics/graphviz/Makefile +++ b/graphics/graphviz/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.241 2021/12/08 16:04:56 adam Exp $ +# $NetBSD: Makefile,v 1.242 2021/12/29 12:10:32 he Exp $ DISTNAME= graphviz-2.49.3 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= graphics MASTER_SITES= https://gitlab.com/graphviz/graphviz/-/archive/${PKGVERSION_NOREV}/ EXTRACT_SUFX= .tar.bz2 @@ -102,6 +102,13 @@ REPLACE_PERL+= tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \ BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter .endif +.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc") +# Forces link with -lgomp directly instead of via dlopen() +# so we don't overflow thread-local storage in ld.elf_so +CFLAGS+= -fopenmp +CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" +.endif + .if ${OPSYS} == "FreeBSD" SUBST_CLASSES+= sfflags SUBST_STAGE.sfflags= pre-configure |