summaryrefslogtreecommitdiff
path: root/recipes/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-04-30 08:53:28 -0700
committerTom Rini <trini@embeddedalley.com>2009-04-30 09:16:39 -0700
commit73a5d9a06fabdede79c82e315894341b415ec3b1 (patch)
treebb44cec99fcc363e966dde02d55e09cb92cdefa2 /recipes/gcc/gcc-configure-common.inc
parent3628be8901b747558b219d55b370a1f20e1dce5f (diff)
gcc (various): Drop incomplete LDFLAGS patch and really honor them, bump PR
Diffstat (limited to 'recipes/gcc/gcc-configure-common.inc')
-rw-r--r--recipes/gcc/gcc-configure-common.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-configure-common.inc b/recipes/gcc/gcc-configure-common.inc
index e88cee5cb2..ee5784afc3 100644
--- a/recipes/gcc/gcc-configure-common.inc
+++ b/recipes/gcc/gcc-configure-common.inc
@@ -74,6 +74,11 @@ do_configure () {
export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
+
+ # Make sure LDFLAGS are honored.
+ sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.in
+ sed -i 's/^LDFLAGS = $/LDFLAGS = @LDFLAGS@/' ${S}/Makefile.tpl
+
(cd ${S} && gnu-configize) || die "failure running gnu-configize"
# splice our idea of where the headers live into gcc's world