diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-02-27 14:54:04 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-03-23 21:49:08 +1100 |
commit | 642466026a078f7c2bf413e94aa720776300b604 (patch) | |
tree | 295af98c069fdac01f9d2b2ecd3f25097ff587aa /rules.mk | |
parent | dcab4e022083fecf221bebf9d6cdbb30b4b33c4d (diff) | |
download | petitboot-642466026a078f7c2bf413e94aa720776300b604.zip petitboot-642466026a078f7c2bf413e94aa720776300b604.tar.gz |
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>
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)"' \ |