aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClaudio Fontana <claudio.fontana@huawei.com>2013-09-25 14:28:24 +0200
committerPeter Maydell <peter.maydell@linaro.org>2014-04-25 13:07:15 +0100
commitee161eb958df4a9127fa92d34bca3ad26b0f6eee (patch)
tree070f8ad45e93128942013f62a7e3f6effb701f29 /Makefile
parent9702967a573ce53f824cf7790ce5a9531a791f53 (diff)
Makefile: pass CFLAGS also to gcc when linking
Useful for sysroot situations. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 08dd3ad..8f15119 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ OBJS=$(SRCS:.c=.o)
all: $(PROG) $(BINS)
$(PROG): $(OBJS)
- $(CC) -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $^
%.o: %.c $(HDRS)
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<