svn commit: r526318 - head/graphics/svg2png

Yuri Victorovich yuri at FreeBSD.org
Sun Feb 16 20:38:33 UTC 2020


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 at 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


More information about the svn-ports-head mailing list