summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-05-02 03:50:41 +0000
committerNathan Scott <nathans@sgi.com>2006-05-02 03:50:41 +0000
commit2c19df1593699a8f418ed515708c108664b00096 (patch)
tree7ed41a88c52c89c09b88ab40784b22f7fdefab96
parente64d8efb08545b0bec490431cd13dfd269f027c6 (diff)
downloadattr-2c19df1593699a8f418ed515708c108664b00096.tar.gz
Allow LDFLAGS to come from build env, for the Gentoo fringe dwellers.
Merge of master-melb:xfs-cmds:25860a by kenmcd.
-rw-r--r--include/builddefs.in1
-rw-r--r--include/buildmacros2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/builddefs.in b/include/builddefs.in
index 8858342..58debc6 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -10,6 +10,7 @@ _BUILDDEFS_INCLUDED_ = 1
DEBUG = @debug_build@
OPTIMIZER = @opt_build@
MALLOCLIB = @malloc_lib@
+LOADERFLAGS = @LDFLAGS@
LIBATTR = $(TOPDIR)/libattr/libattr.la
LIBMISC = $(TOPDIR)/libmisc/libmisc.la
diff --git a/include/buildmacros b/include/buildmacros
index 928f24f..0c81aaa 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -9,7 +9,7 @@ BUILDRULES = $(TOPDIR)/include/buildrules
# $(CXXFILES), or $(HFILES) and is used to construct the manifest list
# during the "dist" phase (packaging).
-LDFLAGS = $(LLDFLAGS)
+LDFLAGS += $(LOADERFLAGS) $(LLDFLAGS)
LDLIBS = $(LLDLIBS) $(PLDLIBS) $(MALLOCLIB)
MAKEOPTS = --no-print-directory