From owner-svn-ports-head@FreeBSD.ORG Tue Nov 6 00:23:43 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0C64DDC; Tue, 6 Nov 2012 00:23:43 +0000 (UTC) (envelope-from gerald@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B47DE8FC19; Tue, 6 Nov 2012 00:23:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA60NhaL028292; Tue, 6 Nov 2012 00:23:43 GMT (envelope-from gerald@svn.freebsd.org) Received: (from gerald@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA60NhFW028290; Tue, 6 Nov 2012 00:23:43 GMT (envelope-from gerald@svn.freebsd.org) Message-Id: <201211060023.qA60NhFW028290@svn.freebsd.org> From: Gerald Pfeifer Date: Tue, 6 Nov 2012 00:23:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307045 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 00:23:43 -0000 Author: gerald Date: Tue Nov 6 00:23:43 2012 New Revision: 307045 URL: http://svnweb.freebsd.org/changeset/ports/307045 Log: In addition to CFLAGS and LDFLAGS now also CXXFLAGS set an rpath to the GCC run-time. This extends revision r246991 (2010-01-02) and should not be necessary in most cases since LDFLAGS already covers linking, but one can always compile and link in one swoop, and this makes things consistent between C and C++. Feature safe: yes Modified: head/Mk/bsd.gcc.mk Modified: head/Mk/bsd.gcc.mk ============================================================================== --- head/Mk/bsd.gcc.mk Mon Nov 5 22:48:07 2012 (r307044) +++ head/Mk/bsd.gcc.mk Tue Nov 6 00:23:43 2012 (r307045) @@ -202,6 +202,7 @@ CPP:= cpp${V} . if ${_USE_GCC} != 3.4 _GCC_RUNTIME:= ${LOCALBASE}/lib/gcc${V} CFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} +CXXFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} . if defined (USE_FORTRAN) . if ${USE_FORTRAN} == yes