| Submitter | Geoff Levand |
|---|---|
| Date | Feb. 16, 2009, 6:57 a.m. |
| Message ID | <20090216065712.961888310@am.sony.com> |
| Download | mbox | patch |
| Permalink | /patch/23207/ |
| State | Accepted |
| Delegated to: | Jeremy Kerr |
| Headers | show |
Comments
Patch
--- 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)"' \
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(+)