Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2019 22:11:34 +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: r518677 - head/Mk/Uses
Message-ID:  <201911292211.xATMBYhc075074@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Fri Nov 29 22:11:34 2019
New Revision: 518677
URL: https://svnweb.freebsd.org/changeset/ports/518677

Log:
  Mk/Uses/gssapi.mk: don't set GSSAPILDFLAGS for USES=gssapi
  
  Setting GSSAPILDFLAGS for USES=gssapi causes -L/usr/lib to be added to LDFLAGS.
  
  This breaks compilation of some ports, like www/squid on GCC architectures when new GCC from ports needs to be used.
  
  The new GCC tries to link to libstdc++ and fails. Not setting it explicitely causes /usr/local/lib/gcc8/libstdc++.so to be taken instead and /usr/lib is searched for libraries anyway, just with lower priority.
  
  Tested on powerpc64 and amd64 on www/squid.
  
  PR:		237275
  Approved by:	mentors (implicit approval), hrs (maintainer timeout)

Modified:
  head/Mk/Uses/gssapi.mk

Modified: head/Mk/Uses/gssapi.mk
==============================================================================
--- head/Mk/Uses/gssapi.mk	Fri Nov 29 22:10:30 2019	(r518676)
+++ head/Mk/Uses/gssapi.mk	Fri Nov 29 22:11:34 2019	(r518677)
@@ -95,7 +95,7 @@ GSSAPIINCDIR=	${GSSAPIBASEDIR}/include
 _HEADERS+=	gssapi/gssapi.h gssapi/gssapi_krb5.h krb5.h
 GSSAPICPPFLAGS=	-I"${GSSAPIINCDIR}"
 GSSAPILIBS=	-lkrb5 -lgssapi -lgssapi_krb5
-GSSAPILDFLAGS=	-L"${GSSAPILIBDIR}"
+GSSAPILDFLAGS=
 .elif ${_local} == "heimdal"
 HEIMDAL_HOME?=	${LOCALBASE}
 GSSAPIBASEDIR=	${HEIMDAL_HOME}



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