summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-10-08 18:37:30 +0000
committerMike Frysinger <vapier@gentoo.org>2011-10-08 18:37:30 +0000
commit7771176952c3a6db9d0c8a77220b09ae672fbb99 (patch)
tree01e9fea16e87a85af026a4383002d0b158b0dec7 /eclass
parentx86 stable wrt security bug #379297 (diff)
downloadgentoo-2-7771176952c3a6db9d0c8a77220b09ae672fbb99.tar.gz
gentoo-2-7771176952c3a6db9d0c8a77220b09ae672fbb99.tar.bz2
gentoo-2-7771176952c3a6db9d0c8a77220b09ae672fbb99.zip
document optional args to raw-ldflags
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass6
1 files 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: <flags>
+# @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}