Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2019 17:52:59 +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: r519225 - head/comms/flrig
Message-ID:  <201912071752.xB7HqxLi041435@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Dec  7 17:52:59 2019
New Revision: 519225
URL: https://svnweb.freebsd.org/changeset/ports/519225

Log:
  comms/flrig: fix build on powerpc64 elfv2
  
  On powerpc64 elfv2, -mminimal-toc is unnecessary and breaks build.
  
  PR:	242500
  Approved by:	yuri (maintainer)

Modified:
  head/comms/flrig/Makefile

Modified: head/comms/flrig/Makefile
==============================================================================
--- head/comms/flrig/Makefile	Sat Dec  7 17:33:53 2019	(r519224)
+++ head/comms/flrig/Makefile	Sat Dec  7 17:52:59 2019	(r519225)
@@ -29,6 +29,10 @@ NATIVE_OPT_DESC=	Enable Native Optimizations
 NATIVE_OPT_CONFIGURE_ON+=	--enable-optimizations=native
 NATIVE_OPT_CONFIGURE_OFF+=	--enable-optimizations=none
 
-CFLAGS_powerpc64=	-mminimal-toc
+.include <bsd.port.pre.mk>
 
-.include <bsd.port.mk>
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
+CFLAGS+=	-mminimal-toc
+.endif
+
+.include <bsd.port.post.mk>



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