From 3167606e5ee124d073731053aa4c6978479d5dbc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 8 Oct 2011 18:37:30 +0000 Subject: [PATCH] document optional args to raw-ldflags --- eclass/flag-o-matic.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 337a70757d52..217b736c0e2c 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.155 2011/08/17 18:20:59 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.156 2011/10/08 18:37:30 vapier Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -658,11 +658,13 @@ filter-ldflags() { } # @FUNCTION: raw-ldflags -# @USAGE: +# @USAGE: [flags] # @DESCRIPTION: # Turn C style ldflags (-Wl,-foo) into straight ldflags - the results # are suitable for passing directly to 'ld'; note LDFLAGS is usually passed # to gcc where it needs the '-Wl,'. +# +# If no flags are specified, then default to ${LDFLAGS}. raw-ldflags() { local x input="$@" [[ -z ${input} ]] && input=${LDFLAGS} -- 2.26.2