Signed-off-by: Marc Kleine-Budde <[email protected]>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0c66475..96f8a19 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ DESTDIR =
 # if -I is being used due to conflicting definitions in the code, and we do not
 # want to modify the sources to allow easy synching to u-boot itself in the
 # future.
-LCFLAGS = -idirafter ./include -DUSE_HOSTCC $(CFLAGS)
+LCFLAGS = -idirafter ./include -DUSE_HOSTCC $(CFLAGS) $(CPPFLAGS)
 
 obj = bld
 
@@ -48,7 +48,7 @@ $(C_OBJS): $(obj)/%.o: src/%.c $(filter-out $(wildcard 
$(obj)), $(obj))
        @echo "  [CC] $<"; $(CC) -c $(LCFLAGS) $< -o $@
 
 mkimage$(SFX): $(C_OBJS)
-       @echo "  [LD] $@"; $(CC) $(LCFLAGS) $^ -o $@
+       @echo "  [LD] $@"; $(CC) $(LCFLAGS) $(LDFLAGS) $^ -o $@
        $(STRIP) $@
 
 .PHONY: install
-- 
1.7.1


-- 
ptxdist mailing list
[email protected]

Reply via email to