Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2020 16:59:29 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r533564 - head/graphics/photoflare
Message-ID:  <202005011659.041GxTX5027633@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Fri May  1 16:59:28 2020
New Revision: 533564
URL: https://svnweb.freebsd.org/changeset/ports/533564

Log:
  graphics/photoflare: fix build on GCC architectures
  
  GCC doesn't have libomp, it uses -fopenmp flag.
  
  PR:		246089
  Approved by:	yuri (maintainer)
  MFH:		2020Q2 (fix build blanket)

Modified:
  head/graphics/photoflare/Makefile

Modified: head/graphics/photoflare/Makefile
==============================================================================
--- head/graphics/photoflare/Makefile	Fri May  1 16:58:08 2020	(r533563)
+++ head/graphics/photoflare/Makefile	Fri May  1 16:59:28 2020	(r533564)
@@ -19,6 +19,8 @@ USE_QT=		core gui network printsupport widgets buildto
 USE_GL=		gl
 
 CXXFLAGS+=	`pkg-config --cflags GraphicsMagick++`
-LDFLAGS+=	`pkg-config --libs GraphicsMagick++` -lomp
+LDFLAGS+=	`pkg-config --libs GraphicsMagick++` ${LDFLAGS_${CHOSEN_COMPILER_TYPE}}
+LDFLAGS_clang=	-lomp
+LDFLAGS_gcc=	-fopenmp
 
 .include <bsd.port.mk>



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