Skip to content

Commit

Permalink
move libs after objects in linker command
Browse files Browse the repository at this point in the history
  • Loading branch information
amin committed Oct 12, 2020
1 parent 44c7a00 commit 070b565
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 @@ -4,7 +4,7 @@ OBJS=fb2ms.o handler.o element.o util.o
PREFIX?=/usr/local

fb2ms: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) $^ -o fb2ms
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o fb2ms

%.o: %.c %.h
$(CC) $(CFLAGS) -c $< -o $@
Expand Down

0 comments on commit 070b565

Please sign in to comment.