From 3fda55867ad5ab0623f71fbf08ccc4789889d738 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Mon, 21 Oct 2019 09:27:16 -0400 Subject: [PATCH] Pass linker flags as the last part of gcc command. Signed-off-by: Michal Mielewczyk --- example/simple/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/simple/Makefile b/example/simple/Makefile index c775ec1..f19cae0 100644 --- a/example/simple/Makefile +++ b/example/simple/Makefile @@ -19,7 +19,7 @@ all: sync $(MAKE) $(PROGRAM) $(PROGRAM): $(OBJS) - $(CC) $(LDFLAGS) -o $@ $^ + $(CC) -o $@ $^ $(LDFLAGS) sync: @$(MAKE) -C ${OCFDIR} inc O=$(PWD)