]> rtime.felk.cvut.cz Git - arc.git/commitdiff
allows linker script to be processed by pre compiler
authorNiclas <devnull@localhost>
Tue, 23 Nov 2010 15:35:27 +0000 (16:35 +0100)
committerNiclas <devnull@localhost>
Tue, 23 Nov 2010 15:35:27 +0000 (16:35 +0100)
scripts/rules.mk

index 8e2aff80883b827252e14df14deb259547529950..668af3805558ef63af964209bcf3b45ad65eb675 100644 (file)
@@ -152,7 +152,7 @@ inc-y += $(ROOTDIR)/boards/$(BOARDDIR)
 # Preprocess linker files..\r
 %.ldp: %.ldf\r
        @echo "  >> CPP $<"\r
-       $(Q)$(CPP) -E -P -x assembler-with-cpp -o $@ $(addprefix -I ,$(inc-y)) $<\r
+       $(Q)$(CPP) -E -P -x assembler-with-cpp -o $@ $(addprefix -I ,$(inc-y)) $(addprefix -D,$(def-y)) $<\r
 \r
 #      @cat $@ \r
        \r