Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2020 08:47:37 +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: r542622 - head/textproc/qr
Message-ID:  <202007200847.06K8lb66005551@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Mon Jul 20 08:47:37 2020
New Revision: 542622
URL: https://svnweb.freebsd.org/changeset/ports/542622

Log:
  textproc/qr: fix build on GCC architectures
  
  Explicitly link with libm, clang apparently does it by default:
  /tmp/cc16FLqR.o:(.text+0x1cc): undefined reference to `sqrt'

Modified:
  head/textproc/qr/Makefile

Modified: head/textproc/qr/Makefile
==============================================================================
--- head/textproc/qr/Makefile	Mon Jul 20 08:37:48 2020	(r542621)
+++ head/textproc/qr/Makefile	Mon Jul 20 08:47:37 2020	(r542622)
@@ -21,7 +21,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	Y2Z
 GH_TAGNAME=	20713de
 
-MAKE_ARGS=	LIBS="-I${LOCALBASE}/include -L${LOCALBASE}/lib -lqrencode"
+MAKE_ARGS=	LIBS="-I${LOCALBASE}/include -L${LOCALBASE}/lib -lqrencode -lm"
 TEST_TARGET=	test
 
 PLIST_FILES=	bin/${PORTNAME}



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