From: Viktor Szakats Date: Fri, 3 Oct 2025 19:15:33 +0000 (+0200) Subject: Makefile.example: fix option order [ci skip] X-Git-Tag: rc-8_17_0-3~357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7468faffc14e24a14e5f7badc6cc11e4459dc5aa;p=thirdparty%2Fcurl.git Makefile.example: fix option order [ci skip] The `ld` linker is sensitive to this, and did not find libcurl symbol with the order before this patch. Seen with mingw-w64 gcc. Follow-up to f6ddc1fc1e25ff8ea866f90942719af898d0ef0c #18554 Closes #18835 --- diff --git a/docs/examples/Makefile.example b/docs/examples/Makefile.example index f2994e73e1..fbbca8a9a9 100644 --- a/docs/examples/Makefile.example +++ b/docs/examples/Makefile.example @@ -47,4 +47,4 @@ LIBS := -lcurl $(LIBS) # Link the target with all objects and libraries $(TARGET) : $(SRC) - $(CC) -o $(TARGET) $(CFLAGS) $(LDFLAGS) $(LIBS) $< + $(CC) $< $(CFLAGS) $(LDFLAGS) $(LIBS) -o $(TARGET)