Skip to content

Commit

Permalink
object files must be placed before -l option
Browse files Browse the repository at this point in the history
  • Loading branch information
gmd20 committed Jun 1, 2014
1 parent 02d568c commit ba96d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ $(LIB): $(LIB_OBJ)
ar crs $@ $(LIB_OBJ)

$(BIN): $(LIB) $(BIN_OBJ)
$(CXX) $(LDFLAGS) $(BIN_OBJ) -o $@ $(LIB) $(LIBRARY)
$(CXX) $(BIN_OBJ) -o $@ $(LIB) $(LIBRARY) $(LDFLAGS)

%.o: %.cpp
$(CXX) $(CXXFLAGS) -c$< -o $@
Expand Down

0 comments on commit ba96d4c

Please sign in to comment.