Skip to content

Commit

Permalink
Makefile: pass LDFLAGS first, then LDLIBS
Browse files Browse the repository at this point in the history
Some `LDFLAGS` are positional and affect how `LDLIBS` are interpreted.
Not a hard rule, but perhaps it's more usual to pass the libs last.

Ref: curl/curl-for-win@764fa9b
  • Loading branch information
vszakats committed Nov 14, 2023
1 parent 1cf986e commit 6734b4c
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 @@ -42,7 +42,7 @@ INSTALL ?= install
PYTHON3 ?= python3

$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $(TARGET) $(LDLIBS) $(LDFLAGS)
$(CC) $(OBJS) -o $(TARGET) $(LDFLAGS) $(LDLIBS)

trurl.o: trurl.c version.h

Expand Down

0 comments on commit 6734b4c

Please sign in to comment.