Skip to contentSkip to conversation

Add CFLAGS to compile mips purgatory

PATCH Applied Maxim Uvarov 2 participants 2 messages Sep 1, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 kexec/Makefile     |    2 +-
 purgatory/Makefile |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kexec/Makefile +1 -1
index 77f37ae..23385fc 100644
@@ -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
 
purgatory/Makefile +1 -1
index aa3a788..ea0c19a 100644
@@ -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)
 

Best regards,
Maxim Uvarov.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec