From: Geoff Levand Date: Fri, 27 Feb 2009 14:54:04 +0000 (+0000) Subject: Add CFLAGS to LDFLAGS X-Git-Tag: v1.0.0~900 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=642466026a078f7c2bf413e94aa720776300b604;p=petitboot 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 --- 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)"' \