Skip to content
This repository has been archived by the owner on Jul 21, 2018. It is now read-only.

Commit

Permalink
-c does not belong in CFLAGS, should always be explicitly set in the …
Browse files Browse the repository at this point in the history
…compile command
  • Loading branch information
tessus committed Apr 14, 2017
1 parent cb7a0f2 commit c5d1abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CC=g++

# Added -std=c++11 because of auto_ptr to unique_ptr transition
CFLAGS= -c -Wall -O2 -DNDEBUG -std=c++11
CFLAGS= -Wall -O2 -DNDEBUG -std=c++11

LDFLAGS=

Expand All @@ -23,7 +23,7 @@ $(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
$(CC) $(CFLAGS) $< -o $@
$(CC) -c $(CFLAGS) $< -o $@

clean:
@rm -f *.o
Expand Down

0 comments on commit c5d1abb

Please sign in to comment.