From owner-svn-src-head@freebsd.org Fri Aug 14 22:54:54 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1489A9BA4B1; Fri, 14 Aug 2015 22:54:54 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAEDF1465; Fri, 14 Aug 2015 22:54:53 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7EMsrU9010855; Fri, 14 Aug 2015 22:54:53 GMT (envelope-from rpaulo@FreeBSD.org) Received: (from rpaulo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7EMsrtk010852; Fri, 14 Aug 2015 22:54:53 GMT (envelope-from rpaulo@FreeBSD.org) Message-Id: <201508142254.t7EMsrtk010852@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rpaulo set sender to rpaulo@FreeBSD.org using -f From: Rui Paulo Date: Fri, 14 Aug 2015 22:54:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286791 - in head: share/mk usr.bin/lorder X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 22:54:54 -0000 Author: rpaulo Date: Fri Aug 14 22:54:52 2015 New Revision: 286791 URL: https://svnweb.freebsd.org/changeset/base/286791 Log: Introduce a new make variable: NMFLAGS. As the name indicates, these are flags to pass to nm(1). The newer binutils have a plugin mechanism so, to build something with LLVM's LTO, we need to pass flags to nm(1). This commit also extends lorder(1) to pass NMFLAGS to nm(1). Modified: head/share/mk/sys.mk head/usr.bin/lorder/lorder.1 head/usr.bin/lorder/lorder.sh Modified: head/share/mk/sys.mk ============================================================================== --- head/share/mk/sys.mk Fri Aug 14 22:02:14 2015 (r286790) +++ head/share/mk/sys.mk Fri Aug 14 22:54:52 2015 (r286791) @@ -167,6 +167,7 @@ MAKE ?= make .if !defined(%POSIX) NM ?= nm +NMFLAGS ?= OBJC ?= cc OBJCFLAGS ?= ${OBJCINCLUDES} ${CFLAGS} -Wno-import Modified: head/usr.bin/lorder/lorder.1 ============================================================================== --- head/usr.bin/lorder/lorder.1 Fri Aug 14 22:02:14 2015 (r286790) +++ head/usr.bin/lorder/lorder.1 Fri Aug 14 22:54:52 2015 (r286791) @@ -28,7 +28,7 @@ .\" @(#)lorder.1 8.2 (Berkeley) 4/28/95 .\" $FreeBSD$ .\" -.Dd October 25, 2006 +.Dd August 14, 2015 .Dt LORDER 1 .Os .Sh NAME @@ -68,6 +68,9 @@ Path to the .Xr nm 1 binary, defaults to .Dq Li nm . +.It Ev NMFLAGS +Flags to pass to +.Xr nm 1 . .El .Sh EXAMPLES .Bd -literal -offset indent Modified: head/usr.bin/lorder/lorder.sh ============================================================================== --- head/usr.bin/lorder/lorder.sh Fri Aug 14 22:02:14 2015 (r286790) +++ head/usr.bin/lorder/lorder.sh Fri Aug 14 22:54:52 2015 (r286791) @@ -60,7 +60,7 @@ done # # if the line has " U " it's a globally undefined symbol, put it into # the reference file. -${NM} -go $* | sed " +${NM} ${NMFLAGS} -go $* | sed " / [TDW] / { s/:.* [TDW] / / w $S