Permalink
Browse files

ldflags position?

  • Loading branch information...
sahib committed Sep 25, 2012
1 parent 051c7d2 commit 411f8832a96362c110f0aefe85a98b187925ca42
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
@@ -52,7 +52,7 @@ EXECUTABLE=rmlint
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
- @$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
+ @$(CC) $(LDFLAGS) $(OBJECTS) -o $@
ifdef DEBUG
@$(ECHO) "=> Building debug target."
else
@@ -63,7 +63,7 @@ endif
.c.o:
@$(ECHO) "-> Compiling $<"
- @$(CC) $(INCLUDE) $(CFLAGS) $< -o $@
+ @$(CC) $(LDFLAGS) $(INCLUDE) $(CFLAGS) $< -o $@
.PHONY : clean
clean:

0 comments on commit 411f883

Please sign in to comment.