diff options
author | Maxim Uvarov <muvarov@gmail.com> | 2010-09-01 16:19:32 +0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-09-01 21:43:03 +0900 |
commit | 92a732d0032d83a6d00a041d51ee3ca638f96029 (patch) | |
tree | 9c54e2295c70b5f9ed9f7622bf55d91b3f164fd3 | |
parent | 242acd25db83d99a8f6ea48d14c215dd64f3635f (diff) |
Add CFLAGS to compile mips purgatory
Required in case if "-mabi=64" option was specified to build 64 bit mips
application, if not compiler tries to link 64 bit binaries with 32 bit
system libraries.
Signed-off-by: Maxim Uvarov <muvarov@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/Makefile | 2 | ||||
-rw-r--r-- | purgatory/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kexec/Makefile b/kexec/Makefile index 77f37ae..23385fc 100644 --- a/kexec/Makefile +++ b/kexec/Makefile @@ -77,7 +77,7 @@ KEXEC_MANPAGE = $(MANDIR)/man8/kexec.8 $(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB) @$(MKDIR) -p $(@D) - $(LINK.o) -o $@ $^ $(LIBS) + $(LINK.o) -o $@ $^ $(CFLAGS) $(LIBS) $(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include diff --git a/purgatory/Makefile b/purgatory/Makefile index aa3a788..ea0c19a 100644 --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -61,7 +61,7 @@ $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ $(PURGATORY): $(PURGATORY_OBJS) $(MKDIR) -p $(@D) - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ # $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB) |