Skip to content

Commit 6dc2459

Browse files
committed
Makefile: move LDFLAGS into the proper position
if external libraries are required, they have to be added after the object files that require them.
1 parent c5e7931 commit 6dc2459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ libintl.a: $(LIBOBJS)
6262
$(RANLIB) $@
6363

6464
msgmerge: $(OBJS)
65-
$(CC) $(LDFLAGS) -static -o $@ src/msgmerge.o $(PARSEROBJS)
65+
$(CC) -static -o $@ src/msgmerge.o $(PARSEROBJS) $(LDFLAGS)
6666

6767
msgfmt: $(OBJS)
68-
$(CC) $(LDFLAGS) -static -o $@ src/msgfmt.o $(PARSEROBJS)
68+
$(CC) -static -o $@ src/msgfmt.o $(PARSEROBJS) $(LDFLAGS)
6969

7070
xgettext:
7171
cp src/xgettext.sh ./xgettext

0 commit comments

Comments
 (0)