Skip to content

Commit e21b59c

Browse files
fabiangreffrathcarstene1ns
authored andcommitted
make: fix linking order and arguments passing in linking step (#28)
This fixes building with MinGW using the Makefile.
1 parent 8e6b886 commit e21b59c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ ifneq ($(MUSICLIB_LIBS),)
2525
LIBS += $(MUSICLIB_LIBS)
2626
endif
2727

28-
LIBS += -lm
28+
LIBS += -lm -lz
2929

3030
OpenJazz: $(OBJS)
31-
$(CXX) $(LDFLAGS) $(LIBS) -lz $(OBJS) -o OpenJazz
31+
$(CXX) -o OpenJazz $(LDFLAGS) $(OBJS) $(LIBS)
3232

3333
%.o: %.cpp
3434
$(CXX) $(CXXFLAGS) -Isrc -c $< -o $@

0 commit comments

Comments
 (0)