Skip to content

Commit

Permalink
make: fix linking order and arguments passing in linking step (#28)
Browse files Browse the repository at this point in the history
This fixes building with MinGW using the Makefile.
  • Loading branch information
fabiangreffrath authored and carstene1ns committed May 22, 2018
1 parent 8e6b886 commit e21b59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ ifneq ($(MUSICLIB_LIBS),)
LIBS += $(MUSICLIB_LIBS)
endif

LIBS += -lm
LIBS += -lm -lz

OpenJazz: $(OBJS)
$(CXX) $(LDFLAGS) $(LIBS) -lz $(OBJS) -o OpenJazz
$(CXX) -o OpenJazz $(LDFLAGS) $(OBJS) $(LIBS)

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

0 comments on commit e21b59c

Please sign in to comment.