summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-02-27 14:54:04 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-23 21:49:08 +1100
commit642466026a078f7c2bf413e94aa720776300b604 (patch)
tree295af98c069fdac01f9d2b2ecd3f25097ff587aa
parentdcab4e022083fecf221bebf9d6cdbb30b4b33c4d (diff)
downloadtalos-petitboot-642466026a078f7c2bf413e94aa720776300b604.tar.gz
talos-petitboot-642466026a078f7c2bf413e94aa720776300b604.zip
Add CFLAGS to LDFLAGS
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>
-rw-r--r--rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 6f85040..43e047b 100644
--- 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)"' \
OpenPOWER on IntegriCloud