[14/16] petitboot: Add CFLAGS to LDFLAGS

Submitted by Geoff Levand on Feb. 28, 2009, 12:54 a.m.

Details

Message ID 20090228005350.996111597@am.sony.com
State Accepted
Headers show

Commit Message

Geoff Levand Feb. 28, 2009, 12:54 a.m.
Add the CFLAGS options to LDFLAGS so that the machine option
from CFLAGS is used when linking.  This duplicates the
behavior of automake.

Fixes errors like these:
  ppu-ld: skipping incompatible libc.so when searching for -lc

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 rules.mk |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

--- a/rules.mk
+++ b/rules.mk
@@ -2,6 +2,7 @@ 
 VPATH = $(srcdir)
 
 CPPFLAGS += -I$(top_srcdir) -I$(top_srcdir)/lib -I$(builddir)
+LDFLAGS += $(CFLAGS)
 
 # we need paths to be overridable at build-time
 DEFS += '-DPREFIX="$(prefix)"' '-DPKG_SHARE_DIR="$(pkgdatadir)"' \