]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Makefile.example: fix option order [ci skip]
authorViktor Szakats <commit@vsz.me>
Fri, 3 Oct 2025 19:15:33 +0000 (21:15 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 3 Oct 2025 19:35:06 +0000 (21:35 +0200)
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

docs/examples/Makefile.example

index f2994e73e1e4eeb7933fe557c4333e0ae404a4f5..fbbca8a9a9c01a57440e4f31628b865d4446f954 100644 (file)
@@ -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)