Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2020 20:38:32 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r526318 - head/graphics/svg2png
Message-ID:  <202002162038.01GKcWuW002455@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Feb 16 20:38:32 2020
New Revision: 526318
URL: https://svnweb.freebsd.org/changeset/ports/526318

Log:
  graphics/svg2png: Unbreak by adding libm.so explicitly
  
  /usr/local/lib/libsvg-cairo.so does link to libm.so but /usr/bin/ld.lld
  for some reason complains about atan2. Explicitly set libm.so fixes this error.

Modified:
  head/graphics/svg2png/Makefile

Modified: head/graphics/svg2png/Makefile
==============================================================================
--- head/graphics/svg2png/Makefile	Sun Feb 16 20:24:10 2020	(r526317)
+++ head/graphics/svg2png/Makefile	Sun Feb 16 20:38:32 2020	(r526318)
@@ -11,14 +11,12 @@ MASTER_SITES=	http://cairographics.org/snapshots/
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	Render an SVG image to a PNG image (using cairo)
 
-.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
-BROKEN=		ld: error: /usr/local/lib/libsvg-cairo.so: undefined reference to atan2
-.endif
-
 LIB_DEPENDS=	libsvg-cairo.so:graphics/libsvg-cairo
 
 GNU_CONFIGURE=	yes
 USES=		pkgconfig
+
+LDFLAGS+=	/usr/lib/libm.so # Was labeled broken when ${/usr/bin/ld:L:tA}==/usr/bin/ld.lld: ld: error: /usr/local/lib/libsvg-cairo.so: undefined reference to atan2
 
 PLIST_FILES=	bin/svg2png \
 		man/man1/svg2png.1.gz



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